2017 © Pedro Peláez
 

yii2-extension yii2-nrsgateway

Yii2 NRSGateway extension.

image

marqu3s/yii2-nrsgateway

Yii2 NRSGateway extension.

  • Monday, August 1, 2016
  • by marqu3s
  • Repository
  • 1 Watchers
  • 0 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 85 % Grown

The README.md

Yii2 Framework NRSGateway extension.

Yii2 Framework website, (*1)

Installation

Composer

The preferred way to install this extension is through Composer., (*2)

Either run, (*3)

php composer.phar require marqu3s/yii2-nrsgateway "dev"

or add, (*4)

"marqu3s/yii2-nrsgateway": "dev"

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

Usage

Add to main.php components section:, (*6)

[
    'components' => [
        ...
        'sms' => [
            'class' => 'marqu3s\nrsgateway\YiiSMSService',
            'username' => 'theUsername',
            'password' => 'thePassword'
        ],
        ...
    ]
]

and use it:, (*7)

$nrs = Yii::$app->sms->nrs;
$nrs->to   = ['xxxxxxxxxxxxx', 'yyyyyyyyyyyyy'];
$nrs->from = 'Sender';
$nrs->msg  = 'This is a test message.';
$result = $nrs->send();

Check $result variable for errors., (*8)

Original Author

João Marques, e-mail: joao@jjmf.com, (*9)

The Versions

01/08 2016

dev-master

9999999-dev https://github.com/marqu3s/yii2-nrsgateway

Yii2 NRSGateway extension.

  Sources   Download

MIT

The Requires

 

by Joao Marques

yii2 sms nrsgateway