aptvision/rightfax 问题修复 & 功能扩展

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

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

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

GitHub 信息

  • Stars: 2
  • Watchers: 4
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-08-12