dev-master
9999999-dev https://github.com/marqu3s/yii2-nrsgatewayYii2 NRSGateway extension.
MIT
The Requires
by Joao Marques
yii2 sms nrsgateway
Yii2 NRSGateway extension.
Yii2 Framework website, (*1)
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)
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)
João Marques, e-mail: joao@jjmf.com, (*9)
Yii2 NRSGateway extension.
MIT
yii2 sms nrsgateway