2017 © Pedro Peláez
 

symfony-bundle imgix-bundle

Integration of the imgix library into Symfony 4.1 & PHP 7.1

image

tacticmedia/imgix-bundle

Integration of the imgix library into Symfony 4.1 & PHP 7.1

  • Thursday, May 3, 2018
  • by janklan
  • Repository
  • 0 Watchers
  • 1 Stars
  • 377 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 6 Versions
  • 6 % Grown

The README.md

TacticmediaImgixBundle

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

Installation

The best way to install this bundle is by using Composer., (*2)

For Symfony 2.x run:, (*3)

``` bash $ php composer.phar require tacticmedia/imgix-bundle ~1.0, (*4)


For Symfony 3.4+ run: ``` bash $ php composer.phar require tacticmedia/imgix-bundle ~2.0

For Symfony 4+ run:, (*5)

``` bash $ php composer.phar require tacticmedia/imgix-bundle ~3.0, (*6)


For Symfony 4+ with PHP 7.1 run: ``` bash $ php composer.phar require tacticmedia/imgix-bundle ^4.0

Then, enable the bundle:, (*7)

``` php <?php // app/AppKernel.php, (*8)

public function registerBundles() { $bundles = array( // ... new Tacticmedia\ImgixBundle\TacticmediaImgixBundle(), ); }, (*9)


Finally add your sources: ```yml tacticmedia_imgix: enabled: true default_source: 'folder' sources: folder: domain: 'acme.imgix.net' proxy: domain: 'acme-proxy.imgix.net' sign_key: 'abcd1234'

Usage

In your Twig template just do:, (*10)


<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', w=200, h=166) }}" width="200" />

You should put the enabled and domains[] setting in your parameters to be able to enable imgix for different environments., (*11)

License

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

Resources/meta/LICENSE

Credits

This repository is based on https://github.com/GoldenLine/ImgixBundle which seems to be abandoned and not up-to-date with Symfony progress., (*13)

The Versions

03/05 2018

dev-master

9999999-dev

Integration of the imgix library into Symfony 4.1 & PHP 7.1

  Sources   Download

MIT

The Requires

 

imgix

03/05 2018

3.1.1

3.1.1.0

Integration of the imgix library into Symfony 4.1 & PHP 7.1

  Sources   Download

MIT

The Requires

 

imgix

03/05 2018

3.1

3.1.0.0

Integration of the imgix library into Symfony 4.1 & PHP 7.1

  Sources   Download

MIT

The Requires

 

imgix

10/03 2018

3.0.0

3.0.0.0

Integration of the imgix library into Symfony 2/3/4

  Sources   Download

MIT

The Requires

 

imgix

17/12 2017

2.0.0

2.0.0.0

Integration of the imgix library into Symfony 3

  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