laravel-sms-gateway-vonage maintained by misaf
Description
Vonage SMS gateway driver for Laravel SMS Gateway.
Author
Last update
2026/09/02 06:57
(2.x-dev)
License
Downloads
1
Tags
sms - laravel - vonage - sms-gateway - laravel-package - sms-api - sms-provider - sms-driver - vonage-sms
Laravel SMS Gateway Vonage Driver
Vonage SMS gateway driver for misaf/laravel-sms-gateway.
Installation
composer require misaf/laravel-sms-gateway-vonage
Laravel package discovery registers the driver service provider automatically.
Configuration
SMS_GATEWAY_DRIVER=vonage
SMS_GATEWAY_VONAGE_API_KEY=your-api-key
SMS_GATEWAY_VONAGE_API_SECRET=your-api-secret
Publish the config file if you want to edit it directly:
php artisan vendor:publish --tag=sms-gateway-vonage-config
<?php
declare(strict_types=1);
return [
'api_key' => env('SMS_GATEWAY_VONAGE_API_KEY'),
'api_secret' => env('SMS_GATEWAY_VONAGE_API_SECRET'),
'base_url' => env('SMS_GATEWAY_VONAGE_BASE_URL'),
];
Driver Behavior
| Option | Value |
|---|---|
| Driver name | vonage |
| Default base URL | https://rest.nexmo.com/ |
send() endpoint |
POST sms/json |
| Authentication | api_key and api_secret query parameters from laravel-sms-gateway-vonage.api_key and laravel-sms-gateway-vonage.api_secret |
| Payload | Form data sent directly to Vonage |
Usage
use Misaf\LaravelSmsGateway\Facades\SmsGateway;
$response = SmsGateway::driver('vonage')->send([
'from' => 'Laravel',
'to' => '14155550100',
'text' => 'Hello from Vonage',
]);
The payload is passed directly to Vonage, so use the fields expected by the Vonage API.
Use request() when you need direct access to Laravel's HTTP client:
$request = SmsGateway::driver('vonage')->request();
Development
This package is developed in the
misaf/laravel-sms-gateway
monorepo at src/Drivers/laravel-sms-gateway-vonage and split out here on release. Open issues and
pull requests against the monorepo; run composer test and composer analyse
from its root.
License
MIT