misaf/laravel-sms-gateway-sunway

Sunway SMS gateway driver for Laravel.

Maintainers

Package info

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

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

Transparency log

Statistics

Installs: 0

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


README

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

Installation

composer require misaf/laravel-sms-gateway-sunway

Laravel package discovery registers the driver service provider automatically.

Configuration

SMS_GATEWAY_DRIVER=sunway
SMS_GATEWAY_SUNWAY_USERNAME=your-username
SMS_GATEWAY_SUNWAY_PASSWORD=your-password
// config/services.php
'sunway' => [
    'username' => env('SMS_GATEWAY_SUNWAY_USERNAME'),
    'password' => env('SMS_GATEWAY_SUNWAY_PASSWORD'),
    'base_url' => env('SMS_GATEWAY_SUNWAY_BASE_URL', 'https://sms.sunwaysms.com/smsws/'),
],

Driver Behavior

Option Value
Driver name sunway
Default base URL https://sms.sunwaysms.com/smsws/
send() endpoint GET HttpService.ashx
Authentication UserName and Password query parameters from services.sunway.username and services.sunway.password
Payload Query parameters sent directly to Sunway

Usage

use Misaf\LaravelSmsGateway\Facade\SmsGateway;

$response = SmsGateway::driver('sunway')->send([
    'method'  => 'SendSMS',
    'mobile'  => '09123456789',
    'message' => 'Hello, World!',
]);

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

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

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

Testing

composer test
composer analyse

License

MIT