abdualrhmanio / jawalbsms by abdualrhmanIO

JawalbSms SMS Sender Wrapper Laravel
766
4
1
Package Data
Maintainer Username: abdualrhmanIO
Maintainer Contact: mr@abdualrhman.com (Abdualrhman Basim)
Package Create Date: 2017-04-06
Package Last Update: 2024-03-21
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-04-19 15:11:28
Package Statistics
Total Downloads: 766
Monthly Downloads: 9
Daily Downloads: 0
Total Stars: 4
Total Watchers: 1
Total Forks: 1
Total Open Issues: 1

JawalbSms SMS Sender jawalbsms.ws Wrapper for Laravel 5

Introduction

...

Installation

First, you'll need to require the package with Composer:

composer require abdualrhmanio/jawalbsms

Aftwards, run composer update from your command line.

Then, update config/app.php by adding an entry for the service provider.

'providers' => [
	// ...
	Abdualrhmanio\JawalbSms\JawalbSmsServiceProvider::class
];

Then, register class alias by adding an entry in aliases section

'aliases' => [
	// ...
	'jawalbsms' => Abdualrhmanio\JawalbSms\JawalbSmsFacade::class
];

Finally, from the command line again, run

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.

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.

Configuration

You need to fill in jawalbsms.php file that is found in your applications config directory.

Usage

Sending a SMS To Specific Number

You can easily send a SMS to Specific Number with the command

\jawalbsms::sendSMS("Some Message","PhoneNumber");