OnnoRokom SMS for Laravel 5.*, 6.*, 7.* and 8.*
Installation
The OnnoRokom SMS Service Provider can be installed via Composer by requiring the
hizbul/onnorokom-sms
package and setting the minimum-stability
to dev
(required for Laravel 5.*) in your
project's composer.json
., (*1)
{
"require": {
"hizbul/onnorokom-sms": "dev-master",
},
}
or, (*2)
Require this package with composer:, (*3)
composer require hizbul/onnorokom-sms
Update your packages with composer update
or install with composer install
., (*4)
Usage
To use the OnnoRokom SMS Service Provider, you must register the provider when bootstrapping your Laravel application. There are
essentially two ways to do this., (*5)
Find the providers
key in config/app.php
and register the OnnoRokom SMS Service Provider., (*6)
'providers' => [
// ...
Hizbul\OnnorokomSms\OnnorokomSmsServiceProvider::class,
]
Find the aliases
key in config/app.php
., (*7)
'aliases' => [
// ...
'OnnoRokomSMS' => Hizbul\OnnorokomSms\Facades\OnnoRokomSMS::class,
]
Configuration
To use your own settings, publish config., (*8)
$ php artisan vendor:publish --provider="Hizbul\OnnorokomSms\OnnorokomSmsServiceProvider"
, (*9)
Sending a text message One to One:
onnorokom_sms(['message' => 'some text msg', 'mobile_number' => '01918....']);
Sending text message One to Many (Bulk):
onnorokom_sms(['message' => 'some text msg', 'mobile_number' => ['01918....', '0171....']]);
Based on OnnoRokom SMS Service, (*10)
^_^, (*11)