Looking to hire Laravel developers? Try LaraJobs

laravel-sms-gateway-magfa maintained by misaf

Description
Magfa SMS gateway driver for Laravel.
Last update
2026/07/04 11:53 (dev-master)
License
Downloads
1

Comments
comments powered by Disqus

Laravel SMS Gateway Magfa Driver

Magfa SMS gateway driver for misaf/laravel-sms-gateway.

Installation

composer require misaf/laravel-sms-gateway-magfa

Laravel package discovery registers the driver service provider automatically.

Configuration

SMS_GATEWAY_DRIVER=magfa
SMS_GATEWAY_MAGFA_USERNAME=your-username
SMS_GATEWAY_MAGFA_PASSWORD=your-password
// config/services.php
'magfa' => [
    'username' => env('SMS_GATEWAY_MAGFA_USERNAME'),
    'password' => env('SMS_GATEWAY_MAGFA_PASSWORD'),
],

Usage

use Misaf\LaravelSmsGateway\Facade\SmsGateway;

$response = SmsGateway::driver('magfa')->send([
    'to'      => '09123456789',
    'message' => 'Hello',
]);

The payload is passed directly to Magfa, so use the fields expected by the Magfa API.

Use request() when you need direct access to Laravel's HTTP client:

$request = SmsGateway::driver('magfa')->request();

Testing

composer test
composer analyse

License

MIT