laravel-sms-gateway-sunway maintained by misaf
Description
Sunway SMS gateway driver for Laravel SMS Gateway.
Author
Last update
2026/09/02 06:57
(2.x-dev)
License
Downloads
1
Tags
sms - laravel - sms-gateway - laravel-package - sms-api - sms-provider - sunway - sms-driver - sunway-sms
Laravel SMS Gateway Sunway Driver
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