rootwork/php-sfax 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rootwork/php-sfax

最新稳定版本:2.0.1

Composer 安装命令:

composer require rootwork/php-sfax

包简介

PHP client for Scrypt's Sfax service.

README 文档

README

PHP client for Scrypt's Sfax service.

Installation

composer require rootwork/php-sfax

Usage Examples

Create the Client Instance

<?php $sfax = new Rootwork\Sfax\Client( 'https://api.sfaxme.com/api', 'YOURUSERNAME', 'YOURAPIKEY', 'YOURENCRYPTIONKEY', 'YOURIV' );

Send a Fax from a PDF or TIF File

<?php $result = $sfax->sendFax( 'Malcolm Reynolds', '19999999999', '/path/to/file.pdf' ); if ($result->isSuccess) { $queueId = $result->SendFaxQueueId; }

Send a Fax from a URL

<?php $result = $sfax->sendFaxFromUrl( 'Malcolm Reynolds', '19999999999', Rootwork\Sfax\Client::FORMAT_TIF, 'https://www.yoursite.com/getFile?token=ABC123&file=12345678.tif' );

Download Inbound Faxes

<?php $result = $sfax->receiveInboundFax(); foreach ($result->InboundFaxItems as $fax) { $fileData = $sfax->downloadInboundFaxAsPdf($fax->FaxId); file_put_contents("/faxes/$fax->FaxId.pdf", $fileData); }

Running Tests

Tests can be run using composer helper scripts, test or testdox, depending on your output preferences.

composer install composer test composer testdox

Code coverage reports are written to build/.

统计信息

  • 总下载量: 19.56k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 3
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固