PHPackages                             vonage/vonage-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. vonage/vonage-laravel

ActivePackage

vonage/vonage-laravel
=====================

Service provider for Laravel for the Vonage PHP SDK

1.0.5(1y ago)391.1M—8.8%7[3 issues](https://github.com/Vonage/vonage-laravel/issues)[2 PRs](https://github.com/Vonage/vonage-laravel/pulls)MITPHPPHP ^8.0|^8.1|^8.2CI passing

Since Jul 25Pushed 1y ago14 watchersCompare

[ Source](https://github.com/Vonage/vonage-laravel)[ Packagist](https://packagist.org/packages/vonage/vonage-laravel)[ RSS](/packages/vonage-vonage-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (5)Versions (16)Used By (0)

[![The Vonage logo](./vonage_logo.png)](./vonage_logo.png)[![The Laravel logo](https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg)](https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg)

Vonage Package for Laravel
==========================

[](#vonage-package-for-laravel)

[![Latest Stable Version](https://camo.githubusercontent.com/7b45534a7686585a08c120bcc8f63a088ce711a8af4f861351a9b8eef6f38666/687474703a2f2f706f7365722e707567782e6f72672f766f6e6167652f766f6e6167652d6c61726176656c2f76)](https://packagist.org/packages/vonage/vonage-laravel)[![Total Downloads](https://camo.githubusercontent.com/c33be3e813834d645ec529bfe5c1b6a35abe7599c130c4c1aa665d119d6e84ee/687474703a2f2f706f7365722e707567782e6f72672f766f6e6167652f766f6e6167652d6c61726176656c2f646f776e6c6f616473)](https://packagist.org/packages/vonage/vonage-laravel)[![License](https://camo.githubusercontent.com/669e2b5dc9711d9e671f43f7cd5e25764d765218eb283343c162cfa8b9e9765c/687474703a2f2f706f7365722e707567782e6f72672f766f6e6167652f766f6e6167652d6c61726176656c2f6c6963656e7365)](https://packagist.org/packages/vonage/vonage-laravel)[![PHP Version Require](https://camo.githubusercontent.com/7b4a936111b60a76934a51fbd2556ee14869b46f84be616bfd51f56435459d29/687474703a2f2f706f7365722e707567782e6f72672f766f6e6167652f766f6e6167652d6c61726176656c2f726571756972652f706870)](https://packagist.org/packages/vonage/vonage-laravel)

### Introduction

[](#introduction)

This is a Laravel Service Provider for integrating the [Vonage PHP Client Library](https://github.com/Vonage/vonage-php-sdk).

### Requirements

[](#requirements)

This Package is for use with Laravel versions 9.x and upwards due to PHP Version restrictions. You will need to be running PHP8.0 and upwards - for older compatibility you will need to look at previous versions.

### Installation

[](#installation)

Using [Composer](https://getcomposer.org/), run the terminal command:

```
composer require vonage/vonage-laravel
```

### Dealing with Guzzle Client issues

[](#dealing-with-guzzle-client-issues)

By default, this package uses vonage/client, which includes a Guzzle adapter for accessing the API. Some other libraries supply their own Guzzle adapter, leading to composer not being able to resolve a list of dependencies. You may get an error when adding `vonage/vonage-laravel` to your application because of this.

The Vonage client allows you to override the HTTP adapter that is being used. This takes a bit more configuration, but this package allows you to use `vonage/client-core` to supply your own HTTP adapter.

To do this:

Run `composer require vonage/client-core` to install the Core SDK with Composer.

Install your own httplug-compatible adapter. For example, to use Symfony's HTTP Client:

```
composer require symfony/http-client php-http/message-factory php-http/httplug nyholm/psr7
```

`composer require vonage/vonage-laravel` to install this package

In your .env file, add the following configuration:

```
VONAGE_HTTP_CLIENT="Symfony\\Component\\HttpClient\\HttplugClient"
```

You can now pull the Vonage\\Client object from the Laravel Service Container, or use the Facade provided by this package.

### Configuration

[](#configuration)

You can use `artisan vendor:publish` to copy the distribution configuration file to your app's config directory:

```
php artisan vendor:publish --provider="Vonage\Laravel\VonageServiceProvider"
```

Then update `config/vonage.php` with your credentials. Alternatively, you can update your `.env` file with the following:

```
VONAGE_KEY=my_api_key
VONAGE_SECRET=my_secret
```

Optionally, you could also set an `application_id` and `private_key` if required:

```
VONAGE_APPLICATION_ID=my_application_id
VONAGE_PRIVATE_KEY=./private.key
```

Private keys can either be a path to a file, like above, or the string of the key itself:

```
VONAGE_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\n[...]\n-----END PRIVATE KEY-----\n"
```

```
VONAGE_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----
[...]
-----END PRIVATE KEY-----
"
```

### Usage

[](#usage)

To use the Vonage Client Library you can use the Facade, or request the instance from the service container:

```
$text = new \Vonage\SMS\Message\SMS($toNumber, $fromNumber, 'Test SMS using Laravel');
Vonage::sms()->send($text);
```

Or

```
$vonage = app('Vonage\Client');
$text = new \Vonage\SMS\Message\SMS($toNumber, $fromNumber, 'Test SMS using Laravel');
$vonage->sms()->send($text);
```

If you're using private key authentication, you can make a voice call:

```
$outboundCall = new \Vonage\Voice\OutboundCall(
    new \Vonage\Voice\Endpoint\Phone('14843331234'),
    new \Vonage\Voice\Endpoint\Phone('14843335555')
);
$outboundCall
    ->setAnswerWebhook(
        new \Vonage\Voice\Webhook('https://example.com/answer')
    )
    ->setEventWebhook(
        new \Vonage\Voice\Webhook('https://example.com/event')
    )
;

$response = Vonage::voice()->createOutboundCall($outboundCall);
```

For more information on using the Vonage Client library, see the [official client library repository](https://github.com/Vonage/vonage-php-sdk-core).

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance42

Moderate activity, may be stable

Popularity52

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 88.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~135 days

Recently: every ~193 days

Total

8

Last Release

447d ago

Major Versions

0.0.2 → 1.0.02022-08-19

PHP version history (2 changes)0.0.1PHP ^7.4|^8.0|^8.1

1.0.1PHP ^8.0|^8.1|^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c2583b67d4e1a4ade23b6ce271980d18bf3facb4ea3f0610fded770f380d17d?d=identicon)[dragonmantank](/maintainers/dragonmantank)

![](https://www.gravatar.com/avatar/efc1f4119b02a988612122f19b2e021c8e919e5018f645d453a62b47064790b2?d=identicon)[SecondeJK](/maintainers/SecondeJK)

---

Top Contributors

[![SecondeJK](https://avatars.githubusercontent.com/u/17067659?v=4)](https://github.com/SecondeJK "SecondeJK (38 commits)")[![ash-jc-allen](https://avatars.githubusercontent.com/u/39652331?v=4)](https://github.com/ash-jc-allen "ash-jc-allen (2 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")[![ziming](https://avatars.githubusercontent.com/u/679513?v=4)](https://github.com/ziming "ziming (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vonage-vonage-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/vonage-vonage-laravel/health.svg)](https://phpackages.com/packages/vonage-vonage-laravel)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
