To install this bundle, you'll need both the Imagine library and this bundle.
Tell composer to require LiipImagineBundle by running the command:
$ php composer.phar require "liip/imagine-bundle:dev-master"
Composer will install the bundle to your project's vendor/liip/imagine-bundle
directory.
Finally, enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Liip\ImagineBundle\LiipImagineBundle(),
);
}
Finally, add the following to your routing file:
# app/config/routing.yml
_imagine:
resource: .
type: imagine
Congratulations! You're ready to rock your images!