shafimsp / laravel-sms-notification-channel-smscountry-driver
SMS Country driver for Laravel SMS Notification Channel
v1.0.0-alpha03
2020-07-16 12:50 UTC
Requires
- php: ^7.1.3
- guzzlehttp/guzzle: ^6.3
- illuminate/support: ~5.8.0|^6.0|^7.0
- shafimsp/laravel-sms-notification-channel: ^1.0@alpha
This package is auto-updated.
Last update: 2024-11-16 22:34:15 UTC
README
Installation
To install the PHP client library using Composer:
composer require shafimsp/laravel-sms-notification-channel-smscountry-driver
The package will automatically register itself.
Driver Prerequisites
SMS Country is API based driver, this require the Guzzle HTTP library, which may be installed via the composer package manager:
composer require composer require guzzlehttp/guzzle
SMS Country Driver
To use the SMS Country driver, first install Guzzle, then set the driver option in your config/services.php configuration file to SMS Country. Next, verify that your config/services.php configuration file contains the following options:
'smscountry' => [ // Set yor login credentials to communicate with mobily.ws Api 'user' => env('SMS_COUNTRY_USER', ''), 'password' => env('SMS_COUNTRY_PASSWORD', ''), 'sms_from' => env('SMS_FROM', ''), /* |-------------------------------------------------------------------------- | Define options for the Http request. (Guzzle http client options) |-------------------------------------------------------------------------- | | You do not need to change any of these settings. | | */ 'guzzle' => [ 'client' => [ // The Base Uri of the Api. Don't Change this Value. 'base_uri' => 'http://api.smscountry.com/', ], // Request Options. http://docs.guzzlephp.org/en/stable/request-options.html 'request' => [ 'http_errors' => true, // For debugging 'debug' => false, ], ], ]
License
SMS Country SMS Notification Driver is open-sourced software licensed under the MIT license.