misaf/laravel-sms-gateway-smsir

SMS.ir SMS gateway driver for Laravel.

Maintainers

Package info

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

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

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:28 UTC


README

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

Installation

composer require misaf/laravel-sms-gateway-smsir

Laravel package discovery registers the driver service provider automatically.

Configuration

SMS_GATEWAY_DRIVER=smsir
SMS_GATEWAY_SMSIR_APIKEY=your-api-key
// config/services.php
'smsir' => [
    'api_key' => env('SMS_GATEWAY_SMSIR_APIKEY'),
    'base_url' => env('SMS_GATEWAY_SMSIR_BASE_URL', 'https://api.sms.ir/v1/'),
],

Driver Behavior

Option Value
Driver name smsir
Default base URL https://api.sms.ir/v1/
send() endpoint POST send/bulk
Authentication X-API-KEY header when services.smsir.api_key is configured
Payload Sent directly to SMS.ir

Usage

use Misaf\LaravelSmsGateway\Facade\SmsGateway;

$response = SmsGateway::driver('smsir')->send([
    'mobile'  => '09123456789',
    'message' => 'Hello from sms.ir',
]);

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

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

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

Testing

composer test
composer analyse

License

MIT