Download the PHP package olivier127/sulu-picture-placeholder-generator-bundle without Composer
On this page you can find all versions of the php package olivier127/sulu-picture-placeholder-generator-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download olivier127/sulu-picture-placeholder-generator-bundle
More information about olivier127/sulu-picture-placeholder-generator-bundle
Files in olivier127/sulu-picture-placeholder-generator-bundle
Package sulu-picture-placeholder-generator-bundle
Short Description Bundle for generating picture placeholder for sulu
License MIT
Homepage https://github.com/Olivier127/SuluPicturePlaceholderGeneratorBundle
Informations about the package sulu-picture-placeholder-generator-bundle
Sulu Picture Placeholder Generator Bundle
This bundle provides functionality for generating picture placeholders for Sulu CMS.
Installation
You can install this bundle via Composer:
Configuration
After installing the bundle, you can configure it in your Symfony application. Add the following configuration to your config/packages/olivier127_place_holder_generator.yaml
file to put the defaut values :
You can not specify seed and id at the same time for lorem picsum. You can only specify the require parameters.
see : https://placehold.co/ and : https://picsum.photos/
Twig Extensions
This bundle provides two Twig extensions: sulu_generate_placeholder
and sulu_generate_picture
.
Usage
sulu_generate_placeholder
This Twig function generates a placeholder using the configured placeholder generator. The options override the bundle configuration.
The options
argument uses the same configuration as placehold
.
sulu_generate_picture
This Twig function generates a picture using the configured picture generator. The options override the bundle configuration.
The options
argument uses the same configuration as lorempicsum
.