2017 © Pedro Peláez
 

library gfycat-php

A PHP interface to the Gfycat API.

image

nehalvpatel/gfycat-php

A PHP interface to the Gfycat API.

  • Wednesday, September 2, 2015
  • by nehalvpatel
  • Repository
  • 2 Watchers
  • 8 Stars
  • 4,321 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 4 Versions
  • 2 % Grown

The README.md

Gfycat.php Build Status

A PHP interface to the Gfycat API., (*1)

Installation

Add the package to your composer file:, (*2)

composer require nehalvpatel/gfycat-php "^2.0"
composer update

Example

  require 'vendor/autoload.php';

  use nehalvpatel\Gfycat;

  // convert a gif from a Url
  print_r(Gfycat::convertUrl("http://i.imgur.com/gTv0isU.gif"));

  // convert a gif from a Url and release (async upload, check status using query())
  Gfycat::convertUrlAndRelease("http://i.imgur.com/gTv0isU.gif");
  //// -> returns gfycat key if gif hasn't already been uploaded to gfycat
  //// -> returns array of gfy data if the gif has been converted before

  // convert a gif from a file
  $file = // stream of data (fopen() or an instance of a Psr\Http\Message\StreamInterface)
  print_r(Gfycat::convertFile($file);

  // query a gfy name for urls and more information
  print_r(Gfycat::query("SpryFixedGnu"));

  // check if a URL has already been converted
  print_r(Gfycat::check("http://i.imgur.com/gTv0isU.gif"));

Contribution

Run tests before creating a pull request: vendor/bin/phpunit., (*3)

The Versions

02/09 2015

dev-master

9999999-dev https://github.com/nehalvpatel/gfycat-php

A PHP interface to the Gfycat API.

  Sources   Download

MIT

The Requires

 

The Development Requires

gif gfycat gfy

02/09 2015

2.0.0

2.0.0.0 https://github.com/nehalvpatel/gfycat-php

A PHP interface to the Gfycat API.

  Sources   Download

MIT

The Requires

 

The Development Requires

gif gfycat gfy

21/05 2014

1.0.1

1.0.1.0 https://github.com/nehalvpatel/gfycat-php

A PHP interface to the Gfycat API.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

gif gfycat gfy

21/05 2014

1.0.0

1.0.0.0 https://github.com/nehalvpatel/gfycat-php

A PHP interface to the Gfycat API.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

gif gfycat gfy