PHPackages                             webedia-arabia/jwplatform - 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. webedia-arabia/jwplatform

ActiveLibrary[API Development](/categories/api)

webedia-arabia/jwplatform
=========================

Official JW Player client / forked php70

v1.7.0(5y ago)07MITPHPPHP &gt;=5.6.0

Since Oct 27Pushed 5y agoCompare

[ Source](https://github.com/miroljubspasic/jwplatform-php)[ Packagist](https://packagist.org/packages/webedia-arabia/jwplatform)[ Docs](https://developer.jwplayer.com/jw-platform/)[ RSS](/packages/webedia-arabia-jwplatform/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (6)Used By (0)

JW Platform API Client
======================

[](#jw-platform-api-client)

The JWPlatform PHP library provides convenient access to the [JW Platform](https://www.jwplayer.com/products/jwplatform/)Management API from applications written in the PHP language.

Visit [JW Player Developer site](https://developer.jwplayer.com/jw-platform/)for more information about JW Platform API.

Requirements
------------

[](#requirements)

PHP 5.6.0 and later.

Install
-------

[](#install)

### Composer

[](#composer)

You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:

```
composer require jwplayer/jwplatform
```

To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

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

### Manual Installation

[](#manual-installation)

If you do not wish to use Composer, you can download the [latest release](https://github.com/jwplayer/jwplatform-php/releases). Then, to use the bindings, include the `init.php` file.

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

Dependencies
------------

[](#dependencies)

The bindings require the following extensions in order to work properly:

- [`curl`](https://secure.php.net/manual/en/book.curl.php), although you can use your own non-cURL client if you prefer

If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.

Usage
-----

[](#usage)

Please refer to our [documentation](https://developer.jwplayer.com/) for all API functionality.

### Get video metadata

[](#get-video-metadata)

```
$jwplatform_api = new Jwplayer\JwplatformAPI('INSERT API KEY', 'INSERT API SECRET');

$video_key = 'INSERT VIDEO KEY';
$response = $jwplatform_api->call('/videos/show', array('video_key'=>$video_key));
```

### Upload file

[](#upload-file)

```
$jwplatform_api = new Jwplayer\JwplatformAPI('INSERT API KEY', 'INSERT API SECRET');

$target_file = 'examples/test.mp4';
$params = array();
$params['title'] = 'PHP API Test Upload';
$params['description'] = 'Video description here';

// Create video metadata
$create_response = json_encode($jwplatform_api->call('/videos/create', $params));
$decoded = json_decode(trim($create_response), TRUE);
$upload_link = $decoded['link'];

$upload_response = $jwplatform_api->upload($target_file, $upload_link);

print_r($upload_response);
```

### Get analytics report

[](#get-analytics-report)

```
$jwplatform_api = new Jwplayer\JwplatformAPI('API KEY', 'API SECRET', 'REPORTING API KEY');

// set these environment variables
$jwplatform_api_key = $_ENV['JWPLATFORM_API_KEY'];
$jwplatform_api_secret = $_ENV['JWPLATFORM_API_SECRET'];
$reporting_api_key = $_ENV['JWPLATFORM_REPORTING_API_KEY'];

$jwplatform_api = new Jwplayer\JwplatformAPI($jwplatform_api_key, $jwplatform_api_secret, $reporting_api_key);

// params to get to query by embeds by device for a certain date range
$params = array();
$params['start_date'] = '2019-12-01';
$params['end_date'] = '2019-12-31';
$params['dimensions'] = array('device_id');
$params['include_metadata'] = 1;
$params['metrics'] = array(array('operation' => 'sum', 'field' => 'embeds'));
$params['sort'] = array(array('field' => 'embeds', 'order' => 'DESCENDING'));

// Query analytics
$response = json_encode($jwplatform_api->call('/sites/'.$jwplatform_api_key.'/analytics/queries', $params, 'v2'));

print_r(json_decode($response));
```

For more example queries, please refer to our [documentation](https://developer.jwplayer.com/jwplayer/docs/analytics-example-report-queries).

Development
-----------

[](#development)

Get [Composer](https://getcomposer.org/). For example, on Mac OS:

```
brew install composer
```

Install dependencies:

```
composer install
```

License
-------

[](#license)

JW Platform API library is distributed under the [MIT license](https://github.com/jwplayer/jwplatform-php/blob/master/LICENSE).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 79.3% 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 ~126 days

Total

4

Last Release

2007d ago

### Community

Maintainers

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

---

Top Contributors

[![ksindi](https://avatars.githubusercontent.com/u/2092714?v=4)](https://github.com/ksindi "ksindi (23 commits)")[![miroljubspasic](https://avatars.githubusercontent.com/u/535875?v=4)](https://github.com/miroljubspasic "miroljubspasic (3 commits)")[![Dawolee](https://avatars.githubusercontent.com/u/27169173?v=4)](https://github.com/Dawolee "Dawolee (1 commits)")[![mdemauroy](https://avatars.githubusercontent.com/u/17426300?v=4)](https://github.com/mdemauroy "mdemauroy (1 commits)")[![monibons](https://avatars.githubusercontent.com/u/9555582?v=4)](https://github.com/monibons "monibons (1 commits)")

---

Tags

apijwplayervideo streamingjwplatform

### Embed Badge

![Health badge](/badges/webedia-arabia-jwplatform/health.svg)

```
[![Health](https://phpackages.com/badges/webedia-arabia-jwplatform/health.svg)](https://phpackages.com/packages/webedia-arabia-jwplatform)
```

###  Alternatives

[jwplayer/jwplatform

Official JW Player client

18384.5k](/packages/jwplayer-jwplatform)[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.0k](/packages/m165437-laravel-blueprint-docs)

PHPackages © 2026

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