PHPackages                             vonage/video - 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. [API Development](/categories/api)
4. /
5. vonage/video

ActiveLibrary[API Development](/categories/api)

vonage/video
============

Client package for the Vonage Video API Server operations

1.4.0(7mo ago)022.3k↓17%2[2 issues](https://github.com/Vonage/vonage-php-sdk-video/issues)Apache-2.0PHPCI passing

Since Jun 27Pushed 7mo ago8 watchersCompare

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

READMEChangelog (10)Dependencies (7)Versions (16)Used By (0)

Vonage PHP SDK for Video
========================

[](#vonage-php-sdk-for-video)

[![Contributor Covenant](https://camo.githubusercontent.com/2757a9db291c5ceda172e31d4fa5f3c4048a6e6257ee0b7113f80de277074b91/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f6e7472696275746f72253230436f76656e616e742d76322e3025323061646f707465642d6666363962342e737667)](CODE_OF_CONDUCT.md)[![Build Status](https://github.com/vonage/vonage-php-sdk-videos/workflows/build/badge.svg)](https://github.com/Vonage/vonage-php-sdk-core/actions?query=workflow%3Abuild)[![Latest Stable Version](https://camo.githubusercontent.com/ce20702f58e60525f2b79a2f4ab8f20b39abfed2f17ab7bb6b3d446647aac909/68747470733a2f2f706f7365722e707567782e6f72672f766f6e6167652f766964656f2f762f737461626c65)](https://packagist.org/packages/vonage/video)[![License](https://camo.githubusercontent.com/5b60841bea9e11d9d0b0950d690c9bc554e06385634056a7d5d62a15d1a4eabe/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4170616368655f322e302d626c75652e737667)](https://opensource.org/licenses/Apache-2.0)[![codecov](https://camo.githubusercontent.com/8d323da771958feede0e9722e1fa0c0beece179f6d2bbdf9ba07d566e2b48c8b/68747470733a2f2f636f6465636f762e696f2f67682f566f6e6167652f766f6e6167652d7068702d73646b2d766964656f2f6272616e63682f302e782f67726170682f62616467652e737667)](https://codecov.io/gh/vonage/vonage-php-sdk-core)

[![The Vonage logo](./vonage_logo.png)](./vonage_logo.png)

*This library requires a minimum PHP version of 8.1*

This is a PHP client library for the Vonage Video API. It extends the [Vonage PHP library](https://raw.githubusercontent.com/Vonage/vonage-php-sdk-core). To use this, you'll need a Vonage account. Sign up \[for free at nexmo.com\]\[signup\].

- [Installation](#installation)
- [Usage](#usage)
- [Examples](#examples)
- [Contributing](#contributing)

Installation
------------

[](#installation)

---

To use the client library you'll need to have \[created a Vonage account\]\[signup\].

To install the PHP client library to your project, we recommend using [Composer](https://getcomposer.org/).

```
composer require vonage/video
```

> PLEASE NOTE that this package is not designed to be used as a standalone. It requires the `vonage/client-core` package to work, but you might not have a PSR-11-compliant HTTP Client installed which is required for this. In order to get around this, install `vonage/client-core` first, then `vonage/video`. This will cover all requirements of the package.

If you're new to Composer, here are some resources that you may find useful:

- [Composer's Getting Started page](https://getcomposer.org/doc/00-intro.md) from Composer project's documentation.
- [A Beginner's Guide to Composer](https://scotch.io/tutorials/a-beginners-guide-to-composer) from the good people at ScotchBox.

Usage
-----

[](#usage)

If you're using Composer, make sure the autoloader is included in your project's bootstrap file:

```
require_once "vendor/autoload.php";
```

Create a client with your Vonage application ID and private key:

```
use Vonage\Client;
use Vonage\Client\Credentials\Keypair;
use Vonage\Video\ClientFactory;

$credentials = new Keypair('private-key-string', 'application-id');
$client = new Client($credentials);
$vonageVideoClient = $client->video();
```

For testing purposes you can change the API URL that the client makes requests to from `https://video.api.vonage.com` to something else. To do this, pass the `base_video_url` option when creating the Vonage client:

```
$credentials = new Keypair('private-key-string', 'application-id');
$options = ['base_video_url' => 'https://local-testing.video.example.com'];
$client = new Client($credentials. $options);
```

Examples
--------

[](#examples)

### Creating a new Session

[](#creating-a-new-session)

```
$session = $client->video()->createSession();
echo $session->getSessionId();
```

### Create a new session with an Archive

[](#create-a-new-session-with-an-archive)

```
use Vonage\Video;
use Vonage\Video\Archive\ArchiveMode;

$session = $client->video()->createSession(new SessionOptions(['archiveMode' => ArchiveMode::ALWAYS]));
echo $session->getSessionId();
```

### Generating a Client Token

[](#generating-a-client-token)

```
$token = $client->video()->generateClientToken($session->getSessionId());
```

Supported APIs
--------------

[](#supported-apis)

The following is a list of Vonage Video APIs and whether the SDK provides support for them:

APISupported?Session Creation✅Signaling✅Force Muting✅Archiving✅Custom S3/Azure buckets❌SIP Interconnect❌Live Streaming Broadcasts❌Experience Composer❌Account Management❌

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance64

Regular maintenance activity

Popularity29

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51.5% 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 ~64 days

Recently: every ~80 days

Total

14

Last Release

221d ago

### 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

[![dragonmantank](https://avatars.githubusercontent.com/u/108948?v=4)](https://github.com/dragonmantank "dragonmantank (35 commits)")[![SecondeJK](https://avatars.githubusercontent.com/u/17067659?v=4)](https://github.com/SecondeJK "SecondeJK (28 commits)")[![manchuck](https://avatars.githubusercontent.com/u/192776?v=4)](https://github.com/manchuck "manchuck (2 commits)")[![jeffswartz](https://avatars.githubusercontent.com/u/726379?v=4)](https://github.com/jeffswartz "jeffswartz (1 commits)")[![oooooooo](https://avatars.githubusercontent.com/u/60764?v=4)](https://github.com/oooooooo "oooooooo (1 commits)")[![ttebify](https://avatars.githubusercontent.com/u/86431009?v=4)](https://github.com/ttebify "ttebify (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[vonage/client-core

PHP Client for using Vonage's API.

9288.8M18](/packages/vonage-client-core)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)

PHPackages © 2026

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