2017 © Pedro Peláez
 

symfony-bundle phumbor-bundle

A bridge for symfony with the phumbor client from 99designs

image

jbouzekri/phumbor-bundle

A bridge for symfony with the phumbor client from 99designs

  • Tuesday, August 16, 2016
  • by jbouzekri
  • Repository
  • 1 Watchers
  • 21 Stars
  • 170,294 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 6 Versions
  • 5 % Grown

The README.md

PhumborBundle

Tests, (*1)

A Symfony Bundle to generate Thumbor image URLs, using the PHP client from webfactory., (*2)

Prerequisites

Of course, you must have a Thumbor server installed and operationnal. If not, you can follow the official installation documentation., (*3)

Installation

Add jbouzekri/phumbor-bundle as a dependency in composer.json., (*4)

``` yml "jbouzekri/phumbor-bundle": "^3.0", (*5)


Enable the bundle in your AppKernel : ``` php $bundles = array( ... new Jb\Bundle\PhumborBundle\JbPhumborBundle() );

In your config.yml, configure at least the url of your Thumbor server and the secret :, (*6)

``` yml jb_phumbor: server: url: http://localhost secret: 123456789, (*7)


Alternatively, you can also set the environment variables `THUMBOR_URL` and `THUMBOR_SECURITY_KEY` for these two settings, for example from your `.env` file or from inside your webserver configuration. Quick use case -------------- You need to resize the image of your article to fit in a square of 50x50. Define the following transformation in your config.yml : ``` yml jb_phumbor: transformations: article_list: fit_in: { width: 50, height: 50 }

Now you can use it in twig :, (*8)

twig {{ thumbor(<the absolute url of your image>, 'article_list') }}, (*9)

Documentation

License

MIT - see LICENSE, (*10)

The Versions

16/08 2016

dev-master

9999999-dev https://github.com/jbouzekri/PhumborBundle

A bridge for symfony with the phumbor client from 99designs

  Sources   Download

MIT

The Requires

 

The Development Requires

twig helper bundle symfony thumbor phumbor

16/08 2016

1.2.1

1.2.1.0 https://github.com/jbouzekri/PhumborBundle

A bridge for symfony with the phumbor client from 99designs

  Sources   Download

MIT

The Requires

 

The Development Requires

twig helper bundle symfony thumbor phumbor

31/05 2016

1.2.0

1.2.0.0 https://github.com/jbouzekri/PhumborBundle

A bridge for symfony with the phumbor client from 99designs

  Sources   Download

MIT

The Requires

 

The Development Requires

twig helper bundle symfony thumbor phumbor

12/05 2015

1.1.1

1.1.1.0 https://github.com/jbouzekri/PhumborBundle

A bridge for symfony with the phumbor client from 99designs

  Sources   Download

MIT

The Requires

 

The Development Requires

twig helper bundle symfony thumbor phumbor

03/09 2014

1.1.0

1.1.0.0 https://github.com/jbouzekri/PhumborBundle

A bridge for symfony with the phumbor client from 99designs

  Sources   Download

MIT

The Requires

 

The Development Requires

twig helper bundle symfony thumbor phumbor

17/04 2014

1.0.0

1.0.0.0 https://github.com/jbouzekri/PhumborBundle

A bridge for symfony with the phumbor client from 99designs

  Sources   Download

MIT

The Requires

 

The Development Requires

twig helper bundle symfony thumbor phumbor