misaf / laravel-sms-gateway-melipayamak
Melipayamak SMS gateway driver for Laravel.
Package info
github.com/misaf/laravel-sms-gateway-melipayamak
pkg:composer/misaf/laravel-sms-gateway-melipayamak
v3.0.0
2026-07-04 09:53 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:53:56 UTC
README
Melipayamak SMS gateway driver for misaf/laravel-sms-gateway.
Installation
composer require misaf/laravel-sms-gateway-melipayamak
Laravel package discovery registers the driver service provider automatically.
Configuration
SMS_GATEWAY_DRIVER=melipayamak SMS_GATEWAY_MELIPAYAMAK_USERNAME=your-username SMS_GATEWAY_MELIPAYAMAK_PASSWORD=your-password
// config/services.php 'melipayamak' => [ 'username' => env('SMS_GATEWAY_MELIPAYAMAK_USERNAME'), 'password' => env('SMS_GATEWAY_MELIPAYAMAK_PASSWORD'), 'base_url' => env('SMS_GATEWAY_MELIPAYAMAK_BASE_URL', 'https://rest.payamak-panel.com/api/'), ],
Driver Behavior
| Option | Value |
|---|---|
| Driver name | melipayamak |
| Default base URL | https://rest.payamak-panel.com/api/ |
send() endpoint |
POST SendSMS/SendSMS |
| Authentication | username and password query parameters from services.melipayamak.username and services.melipayamak.password |
| Payload | Form data sent directly to Melipayamak |
Usage
use Misaf\LaravelSmsGateway\Facade\SmsGateway; $response = SmsGateway::driver('melipayamak')->send([ 'to' => '09123456789', 'from' => '50004000', 'text' => 'Hello from Melipayamak', ]);
The payload is passed directly to Melipayamak, so use the fields expected by the Melipayamak API.
Use request() when you need direct access to Laravel's HTTP client:
$request = SmsGateway::driver('melipayamak')->request();
Testing
composer test
composer analyse
License
MIT