misaf / laravel-sms-gateway-smsir
SMS.ir SMS gateway driver for Laravel.
Package info
github.com/misaf/laravel-sms-gateway-smsir
pkg:composer/misaf/laravel-sms-gateway-smsir
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: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