Download the PHP package rupeshdahal/nepali-sms-gateway without Composer
On this page you can find all versions of the php package rupeshdahal/nepali-sms-gateway. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rupeshdahal/nepali-sms-gateway
More information about rupeshdahal/nepali-sms-gateway
Files in rupeshdahal/nepali-sms-gateway
Package nepali-sms-gateway
Short Description Laravel SMS package supporting multiple SMS gateways (SparrowSMS, AkashSMS, FastSMS)
License MIT
Informations about the package nepali-sms-gateway
Laravel SMS Package
A Laravel package that provides a simple and consistent way to send SMS messages through multiple SMS gateways.
Currently Supported Gateways
- SparrowSMS
- AkashSMS
- FastSMS
Installation
You can install the package via composer:
Publish Configuration
Publish the configuration file:
This will create a config/sms.php
file in your app.
Configuration
Set your SMS gateway credentials in your .env
file:
Usage
Basic Usage
To send an SMS using the default gateway:
Specify Gateway
You can specify which gateway to use for a specific SMS:
Additional Options
You can pass additional options to the send
method:
Error Handling
Extending the Package
Adding a New Gateway
- Create a new gateway class that implements
SmsGatewayInterface
- Add the gateway configuration to the
config/sms.php
file - Update the
SmsManager::resolveGatewayClass()
method to include your new gateway
Example:
Testing
License
The MIT License (MIT). Please see License File for more information.
All versions of nepali-sms-gateway with dependencies
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
illuminate/http Version ^8.0|^9.0|^10.0
guzzlehttp/guzzle Version ^7.0