zhenggg / easy-ihuyi
互亿无线SDK
0.0.1
2017-03-23 08:05 UTC
Requires
- php: >=5.6
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- mockery/mockery: 1.0.x-dev
- phpunit/phpunit: ^5.7
This package is not auto-updated.
Last update: 2024-11-23 21:31:04 UTC
README
📲 互亿无线 composer package.
Requirement
- PHP >= 5.6
Installation
$ composer require "zhenggg/easy-ihuyi"
Usage
use Zhenggg\Huyi\EasyHuyi; $config = [ 'APIID' => 'xxx', 'APIKEY' => 'xxx', ]; //$phone_number 多个号码以英文,隔开 $huyi = new EasyHuyi($config); //短信验证码/通知 $huyi->sms()->content($content)->send($phone_number); //语音验证码 $huyi->voice()->content($content)->send($phone_number); //国际短信 $huyi->isms()->content($content)->send($phone_number); //短信营销 $huyi->yxsms()->content($content)->send($phone_number); //彩信营销(定时发送) $huyi->yxsms()->content($content)->stime($time)->send($phone_number); //彩信营销 $huyi->mms()->mmsid($mmsid)->pid($pid)->send($phone_number);
License
MIT