A PHP interface to the Gfycat API.

v1.0 2017-11-15 00:55 UTC

This package is auto-updated.

Last update: 2024-10-09 14:30:57 UTC


README

PHP Interface to Gfycat, GET and SEARCH

Install

composer require kevincobain2000/gfycat
composer update -vvv

Setup

Get Your ClientId and ClientSecret from Gfycat developer console

Usage

Get

$gfycat = new Gfycat($this->clientId, $this->clientSecret);

$gfyid = 'heartfeltsorrowfulbushsqueaker';
$response = $gfycat->get($gfyid);

Search

$gfycat = new Gfycat($this->clientId, $this->clientSecret);

$query = 'keywords';
$response = $gfycat->search($query);

Tests

vendor/bin/phpunit