Download the PHP package ghanem/gfycat without Composer
On this page you can find all versions of the php package ghanem/gfycat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ghanem/gfycat
More information about ghanem/gfycat
Files in ghanem/gfycat
Informations about the package gfycat
Gfycat and Stickers
A package that provides an interface between Laravel and Gfycat API, includes Gifs and Stickers.
Installation
You can install the package via composer:
now you need to publish the config file with:
Parameters
- q - search query term or phrase
- s - search query term or phrase
- limit - (optional) number of results to return, maximum 100. Default 25.
- offset - (optional) results offset, defaults to 0.
- rating - (optional) limit results to those rated (y,g, pg, pg-13 or r).
- lang - (optional) specify default country for regional content; format is 2-letter ISO 639-1 country code. See list of supported langauges here
Endpoints
- Gifs
- Search
- Translate
- Trending
- Random
- By id
- By id
- Stickers
- Sticker Search
- Sticker Translate
- Sticker Trending
- Sticker Random
Gifs
Search
Search all Gfycat GIFs for a word or phrase. Punctuation will be stripped and ignored. On this case, $gfycats
is an array.
Method: Gfycat::search($query, $limit = 25, $offset = 0, $rating = null, $lang = null)
You can do a dd($gfycats)
to see all attributes:
Translate
The translate API draws on search, but uses the Gfycat "special sauce" to handle translating from one vocabulary to another.
Method: Gfycat::translate($query, $rating = null, $lang = null)
You can do a dd($gfycat)
to see all attributes:
Trending
Fetch GIFs currently trending online. On this case, $gfycats
is an array.
Method: Gfycat::trending($limit = 25, $rating = null)
You can do a dd($gfycats)
to see all attributes:
Random
Returns a random GIF, limited by tag.
Method: Gfycat::random($query, $rating = null)
You can do a dd($gfycat)
to see all attributes:
By ID
Returns meta data about a GIF, by GIF id.
Method: Gfycat::getByID($id)
You can do a dd($gfycat)
to see all attributes:
By IDs
A multiget version of the get GIF by ID endpoint. On this case, $gfycats
is an array.
Method: Gfycat::getByIDs(array $ids)
You can do a dd($gfycats)
to see all attributes:
Stickers
The methods of Stickers are similar to the methods Gfycat, so I will omit the examples of dd()
, but also you can use it to view all the attributes of objects.
Sticker Search
Search all Sticker for a word or phrase. Punctuation will be stripped and ignored. On this case, $stickers
is an array.
Method: Stickers::search($query, $limit = 25, $offset = 0, $rating = null, $lang = null)
Sticker Translate
The translate API draws on search, but uses the Stickers "special sauce" to handle translating from one vocabulary to another.
Method: Stickers::translate($query, $rating = null, $lang = null)
Sticker Trending
Fetch Stickers currently trending online. On this case, $stickers
is an array.
Method: Stickers::trending($limit = 25, $rating = null)
Sticker Random
Returns a random Sticker, limited by tag.
Method: Stickers::random($query, $rating = null)