PHPackages                             hiddeco/laravel-giphy - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. hiddeco/laravel-giphy

ActiveLibrary[API Development](/categories/api)

hiddeco/laravel-giphy
=====================

Giphy API wrapper for Laravel and Lumen based on Guzzle

v0.1.0-alpha(10y ago)28223[1 issues](https://github.com/hiddeco/laravel-giphy/issues)MITPHPPHP &gt;=5.4.0

Since Jun 27Pushed 10y agoCompare

[ Source](https://github.com/hiddeco/laravel-giphy)[ Packagist](https://packagist.org/packages/hiddeco/laravel-giphy)[ RSS](/packages/hiddeco-laravel-giphy/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Laravel Giphy
=============

[](#laravel-giphy)

[![LARAVEL GIPHY](https://camo.githubusercontent.com/0559df2fb72d6442d789046599cb65ac9cbe93c0ed7d7917f70da1d283d3d707/68747470733a2f2f6d65646961342e67697068792e636f6d2f6d656469612f455334566376387a57664974322f67697068792e676966)](https://camo.githubusercontent.com/0559df2fb72d6442d789046599cb65ac9cbe93c0ed7d7917f70da1d283d3d707/68747470733a2f2f6d65646961342e67697068792e636f6d2f6d656469612f455334566376387a57664974322f67697068792e676966)

Laravel Giphy is a [Giphy API](https://api.giphy.com) wrapper for Laravel (and Lumen but ssh, don't tell anyone), providing an easy to access `Giphy` facade.

Installation
------------

[](#installation)

To use this package without running in to trouble you will need PHP 5.5+ or HHVM 3.6+, and Composer.

1. Get the latest version of Laravel Giphy, add the following line to your `composer.json` file

    `"hiddeco/laravel-giphy": "0.1.*@alpha"`
2. Run `composer update` or `composer install`
3. Register the Laravel Giphy service provider in `config/app.php` by adding `'HiddeCo\Giphy\GiphyServiceProvider` to the providers key
4. Add the `Giphy` facade to the `aliases` key: `'Giphy'	=> 'HiddeCo\Giphy\Facades\Giphy'`

Configuration
-------------

[](#configuration)

The only configuration Laravel Giphy needs is a `GIPHY_API_KEY` in your `.env` file. A public beta key is available in the [Giphy API Documentation](https://github.com/giphy/GiphyAPI).

*Note: On Laravel it is also possible to configure Laravel Giphy by running `php artisan config:publish` and adding your `apiKey` to `config/giphy.php`.*

Injecting `Giphy`
-----------------

[](#injecting-giphy)

Injecting `Giphy` in to a controller could not have been any easier.

```
