PHPackages                             vhx/vhx-php - 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. vhx/vhx-php

ActiveLibrary[API Development](/categories/api)

vhx/vhx-php
===========

VHX PHP API Wrapper

1.12.0(8y ago)883.5k—7.1%4[2 issues](https://github.com/vhx/vhx-php/issues)[1 PRs](https://github.com/vhx/vhx-php/pulls)MITPHPPHP &gt;=5.3.3

Since Nov 24Pushed 6y ago36 watchersCompare

[ Source](https://github.com/vhx/vhx-php)[ Packagist](https://packagist.org/packages/vhx/vhx-php)[ Docs](https://github.com/vhx/vhx-php)[ RSS](/packages/vhx-vhx-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (21)Used By (0)

VHX PHP API Client
==================

[](#vhx-php-api-client)

API applications can be created in the [VHX admin](https://www.vhx.tv/admin/platforms) or by emailing .

### Installation

[](#installation)

Requires PHP 5.3.3 and later.

**Composer**

You can install the bindings via [Composer](http://getcomposer.org/). Add this to your `composer.json`:

```
{
  "require": {
    "vhx/vhx-php": "1.12.*"
  }
}
```

Then install via:

```
composer install
```

Then use Composer's [autoload](https://getcomposer.org/doc/00-intro.md#autoloading):

```
require_once('vendor/autoload.php');
```

**Manual**You can also download the [latest release](https://github.com/vhx/vhx-php/releases). Then simply include the `init.php` file.

```
require_once('/path/to/vhx-php/init.php');
```

### Documentation

[](#documentation)

Documentation, including a step-by-step tutorial is available on the [VHX Developer Docs ](http://dev.vhx.tv/api?php) site. For Full API reference [go here](http://dev.vhx.tv/docs/api?php).

### Getting Started

[](#getting-started)

Before requesting your first resource, you must setup your instance with your VHX API key:

```
\VHX\Api::setKey('your VHX API key');
```

Every resource is accessed via the `\VHX` namespace:

```
// example customer create
$customer = \VHX\Customers::create(array(
  email => 'customer@email.com',
  name => 'First Last',
  product => 'https://api.vhx.tv/products/1'
));
```

Headers can be passed in as the last argument, which would either be the second or third argument depending on the method. See each individual method for specifics.

```
// example video create with header
$video = \VHX\Videos::create(array(
  title => 'My Video'
), array(
  'VHX-Client-IP' => '0.0.0.0'
));
```

### Resources &amp; methods

[](#resources--methods)

products

- [`retrieve`](http://dev.vhx.tv/docs/api/?php#product-retrieve)
- [`all`](http://dev.vhx.tv/docs/api/?php#product-list)

customers

- [`create`](http://dev.vhx.tv/docs/api/?php#customer-create)
- [`update`](http://dev.vhx.tv/docs/api/?php#customer-update)
- [`retrieve`](http://dev.vhx.tv/docs/api/?php#customer-retrieve)
- [`all`](http://dev.vhx.tv/docs/api/?php#customer-list)
- [`addProduct`](http://dev.vhx.tv/docs/api/?php#customer-add-product)
- [`removeProduct`](http://dev.vhx.tv/docs/api/?php#customer-remove-product)

watchlist

- [`items`](http://dev.vhx.tv/docs/api/?php#customer-watchlist-items)
- [`addItem`](http://dev.vhx.tv/docs/api/?php#customer-watchlist-add-item)
- [`removeItem`](http://dev.vhx.tv/docs/api/?php#customer-watchlist-remove-item)

watching

- [`items`](http://dev.vhx.tv/docs/api/?php#customer-watching)

browse

- [`all`](http://dev.vhx.tv/docs/api/?php#browse)

videos

- [`create`](http://dev.vhx.tv/docs/api/?php#videos-create)
- [`retrieve`](http://dev.vhx.tv/docs/api/?php#videos-get)
- [`all`](http://dev.vhx.tv/docs/api/?php#videos-list)
- [`files`](http://dev.vhx.tv/docs/api/?php#videos-list-files)

collections

- [`create`](http://dev.vhx.tv/docs/api/?php#collections-create)
- [`update`](http://dev.vhx.tv/docs/api/?php#collections-update)
- [`retrieve`](http://dev.vhx.tv/docs/api/?php#collections-retrieve)
- [`all`](http://dev.vhx.tv/docs/api/?php#collections-list)
- [`items`](http://dev.vhx.tv/docs/api/?php#collection-items-list)

authorizations

- [`create`](http://dev.vhx.tv/docs/api/?php#authorizations-create)

analytics

- [`report`](http://dev.vhx.tv/docs/api/?php#analytics-report)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 95.7% 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 ~32 days

Recently: every ~61 days

Total

20

Last Release

3213d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/471780?v=4)[Vimeo OTT](/maintainers/vhx)[@vhx](https://github.com/vhx)

---

Top Contributors

[![scottusrobus](https://avatars.githubusercontent.com/u/447100?v=4)](https://github.com/scottusrobus "scottusrobus (89 commits)")[![erikmoldovan](https://avatars.githubusercontent.com/u/1292858?v=4)](https://github.com/erikmoldovan "erikmoldovan (2 commits)")[![maxjacobson](https://avatars.githubusercontent.com/u/1421211?v=4)](https://github.com/maxjacobson "maxjacobson (1 commits)")[![refuse](https://avatars.githubusercontent.com/u/2960721?v=4)](https://github.com/refuse "refuse (1 commits)")

---

Tags

apivideovhx

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vhx-vhx-php/health.svg)

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

###  Alternatives

[alaouy/youtube

Laravel PHP Facade/Wrapper for the Youtube Data API v3

8091.3M9](/packages/alaouy-youtube)[shotstack/shotstack-sdk-php

Official PHP SDK for the Shotstack Cloud Video Editing API

1544.9k](/packages/shotstack-shotstack-sdk-php)

PHPackages © 2026

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