isecret / sms
一信通短信 SDK
1.0.0
2021-11-01 07:57 UTC
Requires
- guzzlehttp/guzzle: ^6.3
- monolog/monolog: ^1.23
Requires (Dev)
- mockery/mockery: ^1.2
- phpunit/phpunit: ^7.4
This package is auto-updated.
Last update: 2024-09-29 05:27:59 UTC
README
E易信通短信 SDK。
Installing
$ composer require isecret/sms -vvv
Usage
use Isecret\Sms\Sms;
$config = [
'timeout' => 5.0,
'account' => [
'spcode' => null,
'loginname' => null,
'password' => null
],
'log_path' => '/tmp/sms.log'
];
$sms = new Sms($config);
$sms->send('18888888888', '您的验证码是 123456,10 分钟内有效');
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