Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Grabbio PHP Wrapper
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
example
src
readme.md

readme.md

grabbio PHP SDK

The grabbio platform is an API that allows you to generate video thumbnails in a variety of styles.

Installation

Simply require grabbio.php into your application and you are then ready to use.

Usage

Basic

In its most basic form, the only required parameters are source, upload_url and your api keys.

$Grabbio = new Grabbio(YOUR_API_KEY, YOUR_API_SECRET);
$Grabbio->source(URL_TO_YOUR_VIDEO);
$Grabbio->uploadUrl(URL_TO_UPLOAD_TO);
$Grabbio->grab();

This SDK allows chaining, so the above could be rewritten as:

$Grabbio = new Grabbio(YOUR_API_KEY, YOUR_API_SECRET);
$Grabbio->source(URL_TO_YOUR_VIDEO)->uploadUrl(URL_TO_UPLOAD_TO)->grab();

This SDK also takes advantages of grabbio defaults, so the above could be rewritten as:

$Grabbio = new Grabbio(YOUR_API_KEY, YOUR_API_SECRET);
$Grabbio->grab(URL_TO_YOUR_VIDEO, URL_TO_UPLOAD_TO);

Advanced

All the parameters in the grabbio documentation are supported. Here are a few examples:

320x240 Gif, Capsheet and Individual uploaded to an S3 bucket in developer mode

$Grabbio = new Grabbio(YOUR_API_KEY, YOUR_API_SECRET);
$Grabbio->developerMode();
$Grabbio->createGif(30);
$Grabbio->createCapsheet(3, false, true);
$Grabbio->createIndividual();
$Grabbio->grab("http://test.com/example.wmv", "s3://example_bucket",320, 240);

180x240 Capsheet uploaded to FTP with a callback

$Grabbio = new Grabbio(YOUR_API_KEY, YOUR_API_SECRET);
$Grabbio->createCapsheet(3);
$Grabbio->callback("http://test.com/grabbio_callback.php");
$Grabbio->grab("http://test.com/example.wmv", "ftp://example:password@test.com",180, 240);

Example Thumbnails

Individual

Individual Thumbnail Individual Thumbnail Individual Thumbnail Individual Thumbnail Individual Thumbnail Individual Thumbnail

Gif

GIF

Capsheet

Capsheet Example

Something went wrong with that request. Please try again.