aptvision/rightfax
最新稳定版本:0.0.3
Composer 安装命令:
composer require aptvision/rightfax
包简介
This library allows you to easily send faxes through a rightfax server API
README 文档
README
This library allows you to easily send faxes through a rightfax server API
Usage
use Aptvision\Rightfax\Resource\Recipient; use Aptvision\Rightfax\Client; use GuzzleHttp\Psr7\Stream; $rightfax = new Client( 'http://my-rightfax-server/Rightfax/API/', 'my-username', 'my-password' ); // Create a stream for the document any way that suits best $document = new Stream(fopen('/path/to/document', 'r')); // Post the document to the rightfax API $attachment = $rightfax->postAttachment($document); // Create a recipient $recipient = new Recipient('John Smith', '1234567890'); // Send the fax! // Note that multiple recipients or attachments are allowed $sendJob = $rightfax->sendFax([$recipient], [$attachment]);
统计信息
- 总下载量: 56.04k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-08-12