zhouyb / sms
send sms package.
dev-master
2019-10-31 06:40 UTC
Requires
- guzzlehttp/guzzle: ^6.4
- mockery/mockery: ^1.2
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2025-04-29 01:01:36 UTC
README
创蓝253发短信package
Installing
$ composer require zhouyb/sms -vvv
Usage
首先需要先在创蓝253注册账号,获取account和password
use Zhouyb\Sms\Sms;
$account = '****';
$password = '****';
$sms = new Sms($account, $password);
$response = $sms->sendSms('133********', '您的验证码为1032,验证码2小时后失效。');
参数说明
sendSms(string $phone, string $messaghe)
$phone 要发送的手机号码 $message 发送的短信内容
Contributing
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
License
MIT