Looking to hire Laravel developers? Try LaraJobs

laravel-sms-gateway-melipayamak maintained by misaf

Description
Melipayamak SMS gateway driver for Laravel SMS Gateway.
Last update
2026/09/02 06:57 (2.x-dev)
License
Downloads
1

Comments
comments powered by Disqus

Laravel SMS Gateway Melipayamak Driver

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