Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hyancat/aliyun-sms-php
阿里云 SMS (Deprecated!!!)
https://github.com/hyancat/aliyun-sms-php
aliyun-sms-php deprecated php sms
Last synced: 3 months 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 (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-22T02:19:07.000Z (almost 8 years ago)
- Last Synced: 2024-05-15T11:31:25.878Z (9 months ago)
- Topics: aliyun-sms-php, deprecated, php, sms
- Language: PHP
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- 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).