https://github.com/alexeevdv/yii2-sms-ge-unicard
https://github.com/alexeevdv/yii2-sms-ge-unicard
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/alexeevdv/yii2-sms-ge-unicard
- Owner: alexeevdv
- License: mit
- Created: 2018-05-16T07:59:26.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-16T12:05:21.000Z (about 7 years ago)
- Last Synced: 2025-02-04T22:27:24.125Z (4 months ago)
- Language: PHP
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
yii2-sms-ge-unicard
=====================[](https://travis-ci.org/alexeevdv/yii2-sms-ge-unicard)
[](https://codecov.io/gh/alexeevdv/yii2-sms-ge-unicard)



Yii2 wrapper for Geordian UNICARD sms provider
## Installation
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```bash
$ composer require alexeevdv/yii2-sms-ge-unicard "~1.0.0"
```or add
```
"alexeevdv/yii2-sms-ge-unicard": "~1.0.0"
```to the ```require``` section of your `composer.json` file.
## Configuration
### Via application component
```php
'components' => [
'sms' => [
'class' => \alexeevdv\sms\ge\unicard\Provider::class,
// If you want to ensure only Georgia phone numbers would be sent
//'destinationChecker' => \alexeevdv\sms\ge\unicard\GeorgiaDestinationChecker::class,
],
],
```
## Usage```php
Yii::$app
->sms
->compose('view', ['attribute' => 'value'])
->setTo('123412341234')
->setFrom('Sender')
->send()
;
```