PHPackages                             automattic/wistia-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. [Image &amp; Media](/categories/media)
4. /
5. automattic/wistia-php

ActiveLibrary[Image &amp; Media](/categories/media)

automattic/wistia-php
=====================

PHP wrapper for Wistia API

1.0.2(9y ago)1431.9k11[2 PRs](https://github.com/Automattic/wistia-php/pulls)GPLv2PHP

Since Sep 18Pushed 5y ago87 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

Wistia PHP
==========

[](#wistia-php)

[![Latest Version](https://camo.githubusercontent.com/4383815d08114d8f2e40ba134fb2b4c40f739e48d434a49a0f93390761793d40/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f4175746f6d61747469632f7769737469612d7068702e7376673f7374796c653d666c61742d737175617265)](https://github.com/Automattic/wistia-php/releases)[![Software License](https://camo.githubusercontent.com/d29b73b73c0d974cb5bda74c0d50ee9ea5be2439cbdb9d6cda893d351e41a824/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d47504c76322d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

A PHP client for consuming the Wistia API.

Install
-------

[](#install)

Via Composer

```
$ composer require automattic/wistia-php
```

Methods &amp; Properties
------------------------

[](#methods--properties)

MethodParameters`get_client``N/A``get_token``N/A``list_projects``N/A``show_project``(string) $project_hashed_id``create_project``(array) $project_data``update_project``(string) $project_hashed_id`, `(array) $project_data``delete_project``(string) $project_hashed_id``copy_project``(string) $project_hashed_id``list_sharings``(string) $project_hashed_id``show_sharing``(string) $project_hashed_id`, `(int) $sharing_id``create_sharing``(string) $project_hashed_id``update_sharing``(string) $project_hashed_id`, `(int) $sharing_id`, `(array) $sharing_data``delete_sharing``(string) $project_hashed_id`, `(int) $sharing_id``list_medias``N/A``show_media``(string) $media_hashed_id``create_media``(string) $file_path`, `(array) $media_data``update_media``(string) $media_hashed_id`, `(array) $media_data``delete_media``(string) $media_hashed_id``copy_media``(string) $media_hashed_id``stats_media``(string) $media_hashed_id``show_account``N/A``show_customizations``(string) $media_hashed_id``create_customizations``(string) $media_hashed_id`, `(array) $customizations_data``update_customizations``(string) $media_hashed_id`, `(array) $customizations_data``delete_customizations``(string) $media_hashed_id``list_captions``(string) $media_hashed_id``show_captions``(string) $media_hashed_id`, `(string) $language_code``create_captions``(string) $media_hashed_id`, `(array) $captions_data``update_captions``(string) $media_hashed_id`, `(array) $captions_data``delete_captions``(string) $media_hashed_id`, `(string) $language_code`PropertiesType`$client``object``$format``string``$last_response_code``int`Constructor
-----------

[](#constructor)

When instantiating the library, you need to pass an array of parameters to the constructor.

The array must include the index `token` which contains your Wistia token. Optionally the array can include the format of the responses, the value can be `json` (default), or `xml`. If it does not exist, `json` will be used.

Tests
-----

[](#tests)

To run PHPUnit tests on this library, copy the file `tests/config.sample.php`, rename it to `config.php` and fill in the requested details.

Then open the terminal and navigate to the root of the library and use this command:

```
$ phpunit

```

*Note: Tests may fail if you run them too many times consecutively. There's a limit of 1000 requests/hour from Wistia, also the upload of dummy data may fail due to the internet connection problems and this will cause the tests to fail too.*

Credits
-------

[](#credits)

- [Automattic](https://github.com/Automattic)
- [Nicola Mustone](https://github.com/SiR-DanieL)

License
-------

[](#license)

Wistia PHP - PHP wrapper to consume Wistia API

Copyright (C) 2015 Automattic

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Please see [License File](LICENSE) for more information.

###  Health Score

38

—

LowBetter than 84% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~116 days

Total

4

Last Release

3536d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c5869ecbb8e0eac7e8b8e0f3cf7bdd8d5fcdc4abc10a72281872c53f8639d44?d=identicon)[automattic](/maintainers/automattic)

![](https://www.gravatar.com/avatar/264b42a3c85c1b6c390dcaca3139cfa9402ebb90f4d2302e17318041cd1cdca9?d=identicon)[xyu](/maintainers/xyu)

---

Top Contributors

[![SirDarcanos](https://avatars.githubusercontent.com/u/4429413?v=4)](https://github.com/SirDarcanos "SirDarcanos (28 commits)")

---

Tags

phpclientvideowrapperwistia

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[danog/madelineproto

Async PHP client API for the telegram MTProto protocol.

3.4k855.0k18](/packages/danog-madelineproto)[opentok/opentok

OpenTok is a platform for creating real time streaming video applications, created by TokBox.

1413.0M10](/packages/opentok-opentok)[dereuromark/media-embed

A PHP library to deal with all those media services around, parsing their URLs and embedding their audio/video content in websites.

182530.3k11](/packages/dereuromark-media-embed)[askoldex/teletant

Telegram bot framework

221.0k](/packages/askoldex-teletant)[daun/statamic-mux

Seamless video encoding and streaming using Mux on Statamic sites

132.3k](/packages/daun-statamic-mux)

PHPackages © 2026

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