Download the PHP package l3/photo-bundle without Composer
On this page you can find all versions of the php package l3/photo-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download l3/photo-bundle
More information about l3/photo-bundle
Files in l3/photo-bundle
Package photo-bundle
Short Description PhotoBundle client for RefPhoto Symfony2/Symfony3/Symfony4/Symfony5/Symfony6/Symfony7
License LGPL-3.0-or-later
Homepage https://github.com/l3-team/PhotoBundle
Informations about the package photo-bundle
Symfony 2/ Symfony3 / Symfony4 PhotoBundle Symfony client for RefPhoto
This bundle is a client for the referencial Photo (https://github.com/l3-team/RefPhoto) or (https://github.com/l3-team/RefPhotoJ2EE)
Pre-requisites
- have a RefPhoto instance installed (https://github.com/l3-team/RefPhoto) or (https://github.com/l3-team/RefPhotoJ2EE)
- have a Symfony 2 or Symfony3 or Symfony4 application
Installation
Install the Bundle with this command :
For Symfony 2 and Symfony3, add the Bundle in AppKernel.php
For Symfony4, add the bundle in config/bundles.php file (add the line if not present) :
Configuration
For Symfony2 and Symfony3, add and adapt the 3 variables for configuration in the app/config/parameters.yml.dist and app/config/parameters.yml :
Next add the variable %photo_enabled% in app/config/config.yml under twig globals :
For Symfony4, add and adapt the 3 variables for configuration in the .env.local and .env :
and add the 3 variables under parameters in the config/services.yaml file :
and the variable %photo_enabled% in config/packages/twig.yaml under twig globals :
How to use
In your twig views you can use it like this :