https://github.com/hyancat/aliyun-sms-php
阿里云 SMS (Deprecated!!!)
https://github.com/hyancat/aliyun-sms-php
aliyun-sms-php deprecated php sms
Last synced: 21 days ago
JSON representation
阿里云 SMS (Deprecated!!!)
- Host: GitHub
- URL: https://github.com/hyancat/aliyun-sms-php
- Owner: HyanCat
- License: mit
- Created: 2016-11-14T09:09:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-22T02:19:07.000Z (over 8 years ago)
- Last Synced: 2025-05-29T17:14:27.665Z (about 2 months ago)
- Topics: aliyun-sms-php, deprecated, php, sms
- Language: PHP
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aliyun-sms-php
阿里云短信服务 for PHP.
> ***Deprecated!!!***
>
> *Use https://github.com/HyanCat/short-messenger instead.*## Installation
composer require hyancat/aliyun-sms-php
## Usage
### In a general way
```php
$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](https://github.com/HyanCat/aliyun-sms-php/blob/master/LICENSE).