Requirements

  • PHP 5.x
  • cURL lib

Description

A PHP class for Viddler’s REST Interface. Each API method is dynamically available as a method on the class. The class automatically figures out if the method requires GET, POST or binary transfers. It returns an unserialized PHP array using Viddler’s API version 2.

Installation instructions

PHPViddler 2 is meant to be installed into most any PHP-powered web site or application. It requires at least PHP 5.x. PHP 4.x users would need to use PHPViddler 1.0.

  1. Download the most recent version.
  2. Upload phpviddler.php to your server.
  3. include('/path/to/phpviddler.php'); in your web site or application.
  4. Initiate Viddler class $v = new Viddler_V2('YOUR API KEY HERE');

Examples!

We’ve added a few examples to the download package to help you get started! You can find them in /examples/. Enjoy.

Licensing

PHPViddler 1.0 is dual-licensed under the MIT and GPL licenses. The details of these licenses are included with the zip file.

Third-party software included in PHPViddler 1.0

At present we include the XML Library as a means to parse the REST API’s responses, though it is configurable to turn off for applications that already have an XML Parser. See readme for details.

PHPViddler 2 is licensed under the MIT License which is included in the binary.

Extensions!

Note: All extensions use PHP Viddler 1.0 and not PHPViddler 2.

We’ve begun to build extensions to phpViddler to further its functionality beyond just a wrapper class for the API. Included with phpViddler is php5Viddler which makes phpViddler compatible with PHP 5, so it isn’t in this list.