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