2017 © Pedro Peláez
 

library nrsgateway

NRS Gateway services integration.

image

marqu3s/nrsgateway

NRS Gateway services integration.

  • Monday, May 21, 2018
  • by marqu3s
  • Repository
  • 1 Watchers
  • 1 Stars
  • 35 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 46 % Grown

The README.md

NRS Gateway

360NRS Gateway services integration. This library allows you to use the SMS Push service from 360NRS Gateway., (*1)

Quick Start

Just put in your username and password for the NRSGateway control panel, specify the recipients in array format and send it., (*2)

use marqu3s\nrsgateway;

$nrs = new SMSService('username', 'password');
$nrs->to   = ['xxxxxxxxxxxxx', 'yyyyyyyyyyyyy'];
$nrs->from = 'Sender';
$nrs->msg  = 'This is a test message.';
$nrs->send();

Debugging/Logging

You can configure a log target to debug SMS sending. Configure it like this in your config/main.php file:, (*3)

'log' => [
    'targets' => [
        [
            'class' => 'yii\log\FileTarget',
            'logFile' => '@runtime/logs/sms.log',
            'levels' => ['info'],
            'logVars' => [],
            'categories' => ['marqu3s\nrsgateway\SMSService::doSend'],
        ]
    ],
],

The Versions

21/05 2018

dev-master

9999999-dev

NRS Gateway services integration.

  Sources   Download

MIT

The Development Requires

by Joao Marques