Download the PHP package fakerino/symfony-fakerino without Composer
On this page you can find all versions of the php package fakerino/symfony-fakerino. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package symfony-fakerino
FakerinoBundle
The FakerinoBundle provides integration of Fakerino into the Symfony2 framework.
This bundle also include a Fakerino Twig extension.
More information in the official documentation.
Installation
1. Install symfony-fakerino
Add the following dependency to your projects composer.json file:
2. Install the ODS data sample (optional but suggested)
Install the ODS data sample using one of the below options:
2.1 Install and update automatically adding a script to your composer.json (suggested way):
NOTE: add as first script to be executed.
2.2 Run the command manually (after the fakerino composer installation):
3. Initializing the bundle
To initialize the bundle, you'll need to add it in your app/AppKernel.php
.
4. Configuration (optional)
If the configuration is not set, Fakerino will use the default values.
Configuration example config.yml
:
Example
Controller
Twig file
Service configuration
For more information about the service configuration and the controller used in this example, please read about:
Service Container and Controller as a Service on the official Symfony documentation.
Outputs
Output of helloAction(), will changes at every page refresh:
Output of twigAction(), will changes at every page refresh:
All versions of symfony-fakerino with dependencies
fakerino/fakerino Version ~0.7
twig/twig Version >=1.13.2
symfony/http-kernel Version 2.*
symfony/dependency-injection Version 2.*
symfony/config Version 2.*