2017 © Pedro Peláez
 

symfony-bundle imgix-bundle

Integration of the imgix library into Symfony

image

goldenline/imgix-bundle

Integration of the imgix library into Symfony

  • Friday, April 10, 2015
  • by sgrodzicki
  • Repository
  • 4 Watchers
  • 5 Stars
  • 26,096 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

GoldenlineImgixBundle

Dependency Status, (*1)

Integration of the imgix library into Symfony., (*2)

Installation

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

Usage

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"/>

License

This bundle is released under the MIT license. See the complete license in the bundle:, (*7)

Resources/meta/LICENSE

The Versions

10/04 2015

dev-master

9999999-dev

Integration of the imgix library into Symfony

  Sources   Download

MIT

The Requires

 

imgix

17/12 2014

1.0.0

1.0.0.0

Integration of the imgix library into Symfony

  Sources   Download

MIT

The Requires

 

imgix