๐Ÿ˜› Very important bundle that makes Symfony Exception look like /r/gifs
PHP Makefile
Fetching latest commitโ€ฆ
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Command ๐Ÿšฟ Clean-up the composer.json, FIX CS Dec 10, 2016
DependencyInjection
EventListener ๐Ÿšฟ Clean-up the composer.json, FIX CS Dec 10, 2016
Resources
Tests
bin
.editorconfig Here is the best bundle ever ๐Ÿš€ Jan 15, 2016
.gitignore Here is the best bundle ever ๐Ÿš€ Jan 15, 2016
.php_cs
.travis.yml Replace image using Kernel event listener ๐Ÿšฟ Mar 12, 2016
CHANGELOG.md
CONTRIBUTING.md
GifExceptionBundle.php
LICENSE
Makefile ๐Ÿšฟ Clean-up the composer.json, FIX CS Dec 10, 2016
README.md Optimize GIFs โœ‚๏ธ Sep 7, 2016
VERSIONING.md
composer.json
phpunit.xml.dist

README.md

GifExceptionBundle

Latest Stable Version Total Downloads Build Status

Very important bundle to make Symfony Exception looks like /r/gifs.

Demo

Be aware that we can not be held responsible for any loss of productivity during development.

Installation

  • Use Composer to install GifExceptionBundle in your project:
composer require "jolicode/gif-exception-bundle"
  • Enable the bundle in dev environment:
    /**
     * {@inheritdoc}
     */
    public function registerBundles()
    {
        $bundles = [
            // ...
        ];

        if (in_array($this->getEnvironment(), array('dev', 'test'))) {
            // ...
            $bundles[] = new \Joli\GifExceptionBundle\GifExceptionBundle();
        }

        return $bundles;
    }
  • Then install the assets to make gifs accessible to public:
app/console assets:install

Now enjoy your exceptions \o/

Add some more gifs!

We need you to improve the included GIFs! Do not hesitate to open PRs to add more gifs in Resources/public/images/, it will be very welcomed! ๐Ÿ˜‰

Optimizing gifs

If you are adding gifs we strongly recommend optimizing them. There is a tool to aid with this (you will need to install gifsicle).

bin/optimizer.php

You can also run this from a Symfony project if you have this as an installed bundle via:

bin/console jolicode:gifexception:optimize

Although it would probably make more sense to use the former and push up the optimized gifs.

It uses gifsicle to optimize gifs via the image-optimizer library.

Further documentation

You can see the current and past versions using one of the following:

And some meta documentation:

Credits

License

GifExceptionBundle is licensed under the MIT License - see the LICENSE file for details.