PHPackages                             viddler/phpviddler - 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. viddler/phpviddler

ActiveLibrary[API Development](/categories/api)

viddler/phpviddler
==================

v4.2.1(8y ago)261.5k13[1 issues](https://github.com/viddler/phpviddler/issues)PHPPHP &gt;=5.1.0

Since Jan 4Pushed 8y ago1 watchersCompare

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

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

phpViddler API v2 Library
========================================================================

[](#phpviddler-api-v2-libraryhttpdevelopersviddlercomdocumentation)

A PHP class for Viddler's API version 2. For more information, visit [our developer site](http://developers.viddler.com/)

Important!
----------

[](#important)

Please see the new cURL option for TLS1.2 connectivity issues.

Before updating to version 4.2 (or higher), Please note the following:

Due to PHP 5.5.0 deprecating the "@" method of cURL binary transfer in favor of the [CURLFile class](http://php.net/manual/en/class.curlfile.php), viddler.videos.setThumbnail's 'file' parameter must only be the path to the file:

```
// OLD
$v->viddler_videos_setThumbnail(array(
	'sessionid' => SESSIONID,
	'video_id' => VIDEO_ID,
	'file' => '@./path/to/file.jpg',
	));
// NEW
$v->viddler_videos_setThumbnail(array(
	'sessionid' => SESSIONID,
	'video_id' => VIDEO_ID,
	'file' => './path/to/file.jpg',
	));

```

The wrapper will handle the rest depending on the PHP version installed.

Installation Instructions
-------------------------

[](#installation-instructions)

1. [Download the most recent version](https://github.com/viddler/phpviddler/downloads).
2. Upload phpviddler.php
3. Include phpviddler.php
4. Initiate Viddler class like this $v = new Viddler\_V2('YOUR API KEY HERE');

Usage
-----

[](#usage)

```
$v = new Viddler_V2('Your API Key');

// Authenticate and get your videos
$auth = $v->viddler_users_auth(array('user'=>'USERNAME','password'=>'PASSWORD'));
if (isset($auth['auth']['sessionid'])) {
  $videos = $v->viddler_videos_getByUser(array('sessionid'=>$auth['auth']['sessionid']));
  print '';
  print_r($videos);
  print '';
}

```

Examples
--------

[](#examples)

Included in this repo is an /examples/ directory with a few code examples from uploading, uploading with curl, searching, get your profile and getting your videos.

Embedding
---------

[](#embedding)

Viddler supports a few different embed codes types. To retrieve a proper embed code, you may want to use: [viddler.videos.getEmbedCodeTypes](http://developers.viddler.com/documentation/api-v2/#toc-viddler-videos-getembedcodetypes) and then grab an embed code with [viddler.videos.getEmbedCode](http://developers.viddler.com/documentation/api-v2/#toc-viddler-videos-getembedcode)

Need help?
----------

[](#need-help)

Submit a ticket[here](https://support.viddler.com)

Licensing
---------

[](#licensing)

phpViddler is dual-licensed under the MIT License. The details of this can be found MITlicense.txt

Changelog (started with tag 3.9) - Read overall API changelog [here](http://developers.viddler.com/documentation/api-changelog/)
--------------------------------------------------------------------------------------------------------------------------------

[](#changelog-started-with-tag-39---read-overall-api-changelog-here)

### 4.2 - July 18, 2014

[](#42---july-18-2014)

- Updated binary transfer method for viddler.videos.setThumbnail to use CURLFile class in PHP 5.5.0+
- Organized method list
- Added version number to top comment (for convenience)
- Version number no longer tied to internal platform versioning
- Added composer.json (Thanks Israel Shirk!)

### 4.1 - November 27, 2012

[](#41---november-27-2012)

- Add new methods: viddler.logins.\[add|delete|update\] to POST array

### 4.0.1 - November 19, 2012

[](#401---november-19-2012)

- Fixed type of method viddler.resellers.removeSubaccount, was removeSubaccounts

### 4.0 - July 18, 2012

[](#40---july-18-2012)

- Added direct upload example using cURL
- Removed method viddler.videos.upload
- Updated README file

### 3.9 - April 26, 2012

[](#39---april-26-2012)

- Jumped tag numbers like whoa to keep consistent with internal versioning
- Added new method 'viddler.videos.addClosedCaptioning' (POST)
- Added new method 'viddler.videos.delClosedCaptioning' (POST)
- Added new method 'viddler.videos.setClosedCaptioning' (POST)
- Updates to viddler.encoding.(set|get)Settings
- Added new method viddler.videos.comments.get (GET)
- Updates to viddler.videos.(get|set)Details
- Added new examples in the examples directory
- Added support for HTTPS for all calls

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

3054d ago

### Community

Maintainers

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

---

Top Contributors

[![kyleslattery](https://avatars.githubusercontent.com/u/12444?v=4)](https://github.com/kyleslattery "kyleslattery (32 commits)")[![phpfunk](https://avatars.githubusercontent.com/u/72203?v=4)](https://github.com/phpfunk "phpfunk (18 commits)")[![cdevroe](https://avatars.githubusercontent.com/u/19237?v=4)](https://github.com/cdevroe "cdevroe (13 commits)")[![maparker21](https://avatars.githubusercontent.com/u/938584?v=4)](https://github.com/maparker21 "maparker21 (2 commits)")[![ashrewdmint](https://avatars.githubusercontent.com/u/56678?v=4)](https://github.com/ashrewdmint "ashrewdmint (1 commits)")[![tkotech](https://avatars.githubusercontent.com/u/5091817?v=4)](https://github.com/tkotech "tkotech (1 commits)")[![tylercd100](https://avatars.githubusercontent.com/u/4522226?v=4)](https://github.com/tylercd100 "tylercd100 (1 commits)")

### Embed Badge

![Health badge](/badges/viddler-phpviddler/health.svg)

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

###  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)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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