Looking to hire Laravel developers? Try LaraJobs

laravel-sms-gateway-textlocal maintained by misaf

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

Comments
comments powered by Disqus

Laravel SMS Gateway Textlocal Driver

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

Installation

composer require misaf/laravel-sms-gateway-textlocal

Laravel package discovery registers the driver service provider automatically.

Configuration

SMS_GATEWAY_DRIVER=textlocal
SMS_GATEWAY_TEXTLOCAL_APIKEY=your-api-key
// config/services.php
'textlocal' => [
    'api_key' => env('SMS_GATEWAY_TEXTLOCAL_APIKEY'),
],

Usage

use Misaf\LaravelSmsGateway\Facade\SmsGateway;

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

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

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

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

Testing

composer test
composer analyse

License

MIT