Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexeevdv/yii2-sms-ge-unicard
https://github.com/alexeevdv/yii2-sms-ge-unicard
Last synced: about 1 month 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-16T12:05:21.000Z (over 6 years ago)
- Last Synced: 2024-10-23T12:24:01.972Z (3 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
=====================[![Build Status](https://travis-ci.org/alexeevdv/yii2-sms-ge-unicard.svg?branch=master)](https://travis-ci.org/alexeevdv/yii2-sms-ge-unicard)
[![codecov](https://codecov.io/gh/alexeevdv/yii2-sms-ge-unicard/branch/master/graph/badge.svg)](https://codecov.io/gh/alexeevdv/yii2-sms-ge-unicard)
![PHP 5.6](https://img.shields.io/badge/PHP-5.6-green.svg)
![PHP 7.0](https://img.shields.io/badge/PHP-7.0-green.svg)
![PHP 7.1](https://img.shields.io/badge/PHP-7.1-green.svg)
![PHP 7.2](https://img.shields.io/badge/PHP-7.2-green.svg)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()
;
```