misaf/laravel-sms-gateway-textlocal

Textlocal SMS gateway driver for Laravel.

Maintainers

Package info

github.com/misaf/laravel-sms-gateway-textlocal

pkg:composer/misaf/laravel-sms-gateway-textlocal

Transparency log

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

v3.0.0 2026-07-04 09:54 UTC

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