Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xutl/yii2-sms
The sms extension for the yii framework.
https://github.com/xutl/yii2-sms
aliyun aliyun-mns aliyun-sms sms yii2 yii2-extension yuntongxun
Last synced: about 5 hours ago
JSON representation
The sms extension for the yii framework.
- Host: GitHub
- URL: https://github.com/xutl/yii2-sms
- Owner: xutl
- License: mit
- Created: 2016-09-26T04:27:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-18T09:52:43.000Z (about 7 years ago)
- Last Synced: 2024-11-13T14:55:17.923Z (2 months ago)
- Topics: aliyun, aliyun-mns, aliyun-sms, sms, yii2, yii2-extension, yuntongxun
- Language: PHP
- Homepage:
- Size: 54.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# SMS Extension for Yii 2
[![Latest Stable Version](https://poser.pugx.org/xutl/yii2-sms/v/stable.png)](https://packagist.org/packages/xutl/yii2-sms)
[![Total Downloads](https://poser.pugx.org/xutl/yii2-sms/downloads.png)](https://packagist.org/packages/xutl/yii2-sms)
[![Reference Status](https://www.versioneye.com/php/xutl:yii2-sms/reference_badge.svg)](https://www.versioneye.com/php/xutl:yii2-sms/references)
[![Build Status](https://img.shields.io/travis/xutl/yii2-sms.svg)](http://travis-ci.org/xutl/yii2-sms)
[![Dependency Status](https://www.versioneye.com/php/xutl:yii2-sms/dev-master/badge.png)](https://www.versioneye.com/php/xutl:yii2-sms/dev-master)
[![License](https://poser.pugx.org/xutl/yii2-sms/license.svg)](https://packagist.org/packages/xutl/yii2-sms)Installation
------------Next steps will guide you through the process of installing yii2-admin using [composer](http://getcomposer.org/download/). Installation is a quick and easy three-step process.
### Step 1: Install component via composer
Either run
```
composer require --prefer-dist xutl/yii2-sms
```or add
```json
"xutl/yii2-sms": "~2.0.0"
```to the `require` section of your composer.json.
### Step 2: Configuring your application
Add following lines to your main configuration file:
```php
'modules' => [
'sms' => [
'class' => 'xutl\sms\clients\Aliyun',
//etc
],
],
```### Step 3: Configuring your sms template
继承 `xutl\sms\SendJob` 实现你的短信发送个,在SendJob子类中设定模板什么的。发送直接推给队列了。由队列负责发送。
## License
This is released under the MIT License. See the bundled [LICENSE.md](LICENSE.md)
for details.