misaf / laravel-sms-gateway-textlocal
Textlocal SMS gateway driver for Laravel.
Package info
github.com/misaf/laravel-sms-gateway-textlocal
pkg:composer/misaf/laravel-sms-gateway-textlocal
v3.0.0
2026-07-04 09:54 UTC
Requires
- php: ^8.3
- misaf/laravel-sms-gateway: ^3.0
Requires (Dev)
- guzzlehttp/guzzle: ^7.10
- larastan/larastan: ^3.9.2
- laravel/pint: ^1.29
- mockery/mockery: ^1.6.12
- nunomaduro/collision: ^8.8.3
- orchestra/testbench: ^11.0
- pestphp/pest: ^4.3.2
- pestphp/pest-plugin-laravel: ^4.0
This package is auto-updated.
Last update: 2026-07-04 09:54:57 UTC
README
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'), 'base_url' => env('SMS_GATEWAY_TEXTLOCAL_BASE_URL', 'https://api.txtlocal.com/'), ],
Driver Behavior
| Option | Value |
|---|---|
| Driver name | textlocal |
| Default base URL | https://api.txtlocal.com/ |
send() endpoint |
POST send/ |
| Authentication | apikey query parameter from services.textlocal.api_key |
| Payload | Form data sent directly to Textlocal |
Usage
use Misaf\LaravelSmsGateway\Facade\SmsGateway; $response = SmsGateway::driver('textlocal')->send([ 'numbers' => '447123456789', 'sender' => 'Laravel', 'message' => 'Hello from Textlocal', ]);
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