marqu3s / nrsgateway
NRS Gateway services integration.
Installs: 116
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/marqu3s/nrsgateway
Requires (Dev)
This package is auto-updated.
Last update: 2025-09-19 08:33:09 UTC
README
360NRS Gateway services integration. This library allows you to use the SMS Push service from 360NRS Gateway.
Quick Start
Just put in your username and password for the NRSGateway control panel, specify the recipients in array format and send it.
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:
'log' => [ 'targets' => [ [ 'class' => 'yii\log\FileTarget', 'logFile' => '@runtime/logs/sms.log', 'levels' => ['info'], 'logVars' => [], 'categories' => ['marqu3s\nrsgateway\SMSService::doSend'], ] ], ],