hyancat / aliyun-sms-php
阿里云 SMS
v0.1.0
2016-11-18 02:07 UTC
Requires
- php: >=5.5.9
Requires (Dev)
- phpunit/phpunit: ^4.8|^5.0
This package is auto-updated.
Last update: 2024-11-15 22:45:11 UTC
README
阿里云短信服务 for PHP.
Deprecated!!!
Use https://github.com/HyanCat/short-messenger instead.
Installation
composer require hyancat/aliyun-sms-php
Usage
In a general way
$sms = new SmsService('[TEST_APP_ID]', '[TEST_APP_KEY]'); $sms->send('[PHONE_NUMBER]', function ($message) { $message->template('[TEMPLATE_NAME]')->with([ 'code' => '我是验证码', 'product' => '我是产品', ])->signName('我是签名'); });
For laravel or lumen
Todo...
License
The source code is under MIT License.