dev-master
9999999-devA library implementing access to the Giphy API.
CC0 CC0-1.0
search gif giphy images gifs
A library implementing access to the Giphy API.
A library providing a PHP interface to the Giphy API., (*1)
composer require rfreebern/giphy-php
There is a file named giphy
in the bin
directory. Use it like this:, (*2)
$ ./bin/giphy whiskey
$giphy = new \rfreebern\Giphy(); $result = $giphy->random('whiskey'); print $result->data->image_original_url;
By default, the constructor uses the shared beta API key, but if you have a key of your own you can pass it as an argument:, (*3)
$giphy = new \rfreebern\Giphy($my_giphy_api_key);
In general, the methods in the Giphy
class reflect the endpoints of the
Giphy API, and take the same arguments., (*4)
Searches for gifs matching $query
., (*5)
Fetches a specific GIF by its Giphy ID., (*6)
Fetches one or more specific GIFs by their Giphy IDs., (*7)
Translates a query to a matching GIF. See the docs for more information., (*8)
Fetches a random GIF, optionally matching the given tag., (*9)
Fetches a list of trending GIFs., (*10)
$sticker = new \rfreebern\Sticker(); $result = $sticker->random('whiskey'); print $result->data->image_original_url;
By default, the constructor uses the shared beta API key, but if you have a key of your own you can pass it as an argument:, (*11)
$giphy = new \rfreebern\Giphy($my_giphy_api_key);
In general, the methods in the Giphy
class reflect the endpoints of the
Giphy API, and take the same arguments., (*12)
Searches for stickers matching $query
., (*13)
Translates a query to a matching sticker. See the docs for more information., (*14)
Fetches a random sticker, optionally matching the given tag., (*15)
Fetches a list of trending stickers., (*16)
A library implementing access to the Giphy API.
CC0 CC0-1.0
search gif giphy images gifs