PHP Classes

PHP Convert Video to GIF Gfycat API: Convert videos and animated GIF using Gfycat API

Recommend this page to a friend!
  Info   View files Example   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 199 All time: 8,491 This week: 206Up
Version License PHP version Categories
gfycat-gif-api 1.0GNU General Publi...5.3PHP 5, Web services, Video


This package can convert videos and animated GIF using Gfycat API.

It can send HTTP requests to the Gfycat API Web server to perform video conversion between formats like MP4, Webm and animated GIF.

The class can pass the URL of a public video file to be converted.

The converted video files are available in the Gfycat site under an URL with a given unique key name.

Picture of Andrej Pincik
Name: Andrej Pincik <contact>
Classes: 1 package by
Country: Slovak Republic Slovak Republic
Age: 30
All time rank: 414721 in Slovak Republic Slovak Republic
Week rank: 243 Up1 in Slovak Republic Slovak Republic Up


//require all classes or use autoloader

$url = "/images/userpics/5c0sjmle1p.gif";
$UID = "1424708519";
$gfycat = GfycatService::getInstance();
$result = $gfycat->getFetchedGifInfo(); //returns all information about data.

        /* $gfycat->isTaskComplete(); //returns boolean if conversion is complete
                  $gfycat->getFetchedGifName(); //returns name of converted file
                  $gfycat->getFetchedGifId(); //returns fetched gif ID
                  $gfycat->getFetchedGifDimension(); //return array (width => '', height => '')
                  $gfycat->getFetchedGifFramerate(); //return framerate string (number)
                  $gfycat->getFetchedGifUrls(); //returns URL for gif, webm and mp4 files. array (webmUrl => '', mp4Url => '', gifUrl => '')
                  $gfycat->fetchData(); //send data to convert, if already converted returns array(already_fetched => TRUE, gfyName => String)

  Files folder image Files  
File Role Description
Plain text file Curl.php Class Curl class.
Plain text file CurlException.php Class Curl exception.
Accessible without login Plain text file example.php Example Example file.
Plain text file GfycatException.php Class GfycatService Exception.
Plain text file GfycatService.php Class GfyCat service main source file.
Plain text file ICurl.php Class Curl class interface.
Plain text file IDownloader.php Class Iterface for service.
Plain text file Strings.php Class Nette Framework Utils\Strings class.

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:8,491
This week:206Up