JawalbSms SMS Sender jawalbsms.ws Wrapper for Laravel 9
Introduction
..., (*1)
Installation
First, you'll need to require the package with Composer:, (*2)
composer require abdualrhmanio/jawalbsms
Aftwards, run composer update from your command line., (*3)
Then, update config/app.php by adding an entry for the service provider., (*4)
'providers' => [
// ...
Abdualrhmanio\JawalbSms\JawalbSmsServiceProvider::class
];
Then, register class alias by adding an entry in aliases section, (*5)
'aliases' => [
// ...
'jawalbsms' => Abdualrhmanio\JawalbSms\JawalbSmsFacade::class
];
Finally, from the command line again, run, (*6)
php artisan vendor:publish --tag=config
to publish the default configuration file.
This will publish a configuration file named jawalbsms.php which includes your jawalbsms App Credentials., (*7)
Note: If the previous command does not publish the config file successfully, please check the steps involving providers and aliases in the config/app.php file., (*8)
Configuration
You need to fill in jawalbsms.php file that is found in your applications config directory., (*9)
Usage
Sending a SMS To Specific Number
You can easily send a SMS to Specific Number with the command, (*10)
\jawalbsms::sendSMS("Some Message","PhoneNumber");