2017 © Pedro Peláez
 

yii2-extension yii2-sms-ge-unicard

image

alexeevdv/yii2-sms-ge-unicard

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

yii2-sms-ge-unicard

Build Status codecov PHP 5.6 PHP 7.0 PHP 7.1 PHP 7.2, (*1)

Yii2 wrapper for Geordian UNICARD sms provider, (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

$ composer require alexeevdv/yii2-sms-ge-unicard "~1.0.0"

or add, (*5)

"alexeevdv/yii2-sms-ge-unicard": "~1.0.0"

to the require section of your composer.json file., (*6)

Configuration

Via application component

'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

Yii::$app
    ->sms
    ->compose('view', ['attribute' => 'value'])
    ->setTo('123412341234')
    ->setFrom('Sender') 
    ->send()
;

The Versions