dev-master
9999999-devIntegration of the imgix library into Symfony
MIT
The Requires
imgix
1.0.0
1.0.0.0Integration of the imgix library into Symfony
MIT
The Requires
imgix
Integration of the imgix library into Symfony
Integration of the imgix library into Symfony., (*2)
The best way to install this bundle is by using Composer. Simply run:, (*3)
``` bash $ php composer.phar require goldenline/imgix-bundle dev-master, (*4)
Then, enable the bundle: ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new GoldenLine\ImgixBundle\GoldenlineImgixBundle(), ); }
Finally add your sources:, (*5)
goldenline_imgix: default_source: folder sources: folder: domains: [ acme.imgix.net ] proxy: domains: [ acme-proxy.imgix.net ] sign_key: abcd1234
In your Twig template just do:, (*6)
<img src="{{ imgix('https://assets-cdn.github.com/images/modules/logos_page/Octocat.png', source='proxy', width=200, height=166) }}" width="200" height="166"/> <img src="{{ imgix('images/modules/logos_page/Octocat.png', width=200, height=166) }}" width="200" height="166"/>
This bundle is released under the MIT license. See the complete license in the bundle:, (*7)
Resources/meta/LICENSE
Integration of the imgix library into Symfony
MIT
imgix
Integration of the imgix library into Symfony
MIT
imgix