Download the PHP package misaf/laravel-sms-gateway without Composer
On this page you can find all versions of the php package misaf/laravel-sms-gateway. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download misaf/laravel-sms-gateway
More information about misaf/laravel-sms-gateway
Files in misaf/laravel-sms-gateway
Package laravel-sms-gateway
Short Description Driver-based SMS gateway manager for Laravel.
License MIT
Homepage https://github.com/misaf/laravel-sms-gateway
Informations about the package laravel-sms-gateway
Laravel SMS Gateway
A simple driver-based SMS gateway manager for Laravel.
Features
- Separate packages for each provider.
- Switch drivers per request.
- Laravel HTTP client access.
- SMS sent events with request and response data.
- Custom driver registration.
Requirements
- PHP 8.3+
- Laravel 13+
Installation
Install the core package:
Install one or more driver packages:
Publish the config file:
Driver Packages
First-party driver packages:
| Driver | Package |
|---|---|
ghasedak |
misaf/laravel-sms-gateway-ghasedak |
ippanel |
misaf/laravel-sms-gateway-ippanel |
kavenegar |
misaf/laravel-sms-gateway-kavenegar |
magfa |
misaf/laravel-sms-gateway-magfa |
melipayamak |
misaf/laravel-sms-gateway-melipayamak |
messagebird |
misaf/laravel-sms-gateway-messagebird |
plivo |
misaf/laravel-sms-gateway-plivo |
smsir |
misaf/laravel-sms-gateway-smsir |
sunway |
misaf/laravel-sms-gateway-sunway |
textlocal |
misaf/laravel-sms-gateway-textlocal |
twilio |
misaf/laravel-sms-gateway-twilio |
vonage |
misaf/laravel-sms-gateway-vonage |
Quick Start
Install the Ghasedak driver package:
Set the default driver in .env:
Add the matching service credentials in config/services.php:
Send through the default driver:
See the original provider documentation for available fields.
Configuration
Set SMS_GATEWAY_DRIVER in your application's .env file to choose the default driver.
Provider environment keys are defined by each driver package — see that package's README (linked under Driver Packages) for its variables.
Switching Drivers
Use driver() to send through a specific driver without changing the default:
HTTP Client Access
Use request() to send directly through the configured Laravel HTTP client for a driver:
Use either send() or request() — after calling request()->post(...), you do not need to call send().
Events
HTTP drivers dispatch Misaf\LaravelSmsGateway\Events\SmsSent.
Event properties:
$driverName: the resolved SMS gateway driver name.$request: theIlluminate\Http\Client\Requestinstance.$response: theIlluminate\Http\Client\Responseinstance.
Custom Drivers
Custom drivers should extend SmsGatewayDriver, implement send(), and use configureRequest() for driver-specific HTTP client options.
The driver name is taken from the extend() registration key; it selects the services.{name} config section and labels SmsSent events. Override driverName() only when those should use a different name.
Register it from a service provider:
Development Checks
Run the local checks before committing:
Changelog
Please see CHANGELOG for more information on what has changed recently.
License
MIT
All versions of laravel-sms-gateway with dependencies
illuminate/contracts Version ^13.0
illuminate/http Version ^13.0
illuminate/support Version ^13.0
spatie/laravel-package-tools Version ^1.92