Download the PHP package byscripts/static-entity-bundle without Composer
On this page you can find all versions of the php package byscripts/static-entity-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download byscripts/static-entity-bundle
More information about byscripts/static-entity-bundle
Files in byscripts/static-entity-bundle
Package static-entity-bundle
Short Description Add Symfony3 and Symfony4 ParamConverter and FormType to StaticEntity
License MIT
Informations about the package static-entity-bundle
Byscripts Static Entity Bundle
This bundle brings ParamConverter and FormType supports to Symfony 3 and Symfony 4 for the StaticEntity library.
If you just need to use StaticEntity, and don't need the FormType and ParamConverter support, then this bundle is NOT required.
You can use StaticEntity in your project like any other library.
This 4.x branch supports Symfony 3 and Symfony 4
Use branch 3.x for SymfonyFrameworkBundle 3.x (Used by Symfony 2.4+)
For support of SensioFrameworkBundle 2.x (Used by Symfony 2.3), use the 1.x branch
Installation
Add the package in your composer.json
At command line, run composer require byscripts/static-entity-bundle:~4.0
Enable the Bundle
Symfony 3
Add Byscripts\Bundle\StaticEntityBundle\ByscriptsStaticEntityBundle
to the app/AppKernel.php
file.
Symfony 4
Add Byscripts\Bundle\StaticEntityBundle\ByscriptsStaticEntityBundle::class => ['all' => true]
to the config/bundles.php
file.
Usage
Create a static entity
First, create a static entity on your project (for example, in src/AppBundle/StaticEntity
)
For more details on usage of Static Entities, look at StaticEntity README.md
Use the FormType
List of parameters
| class | required | FQCN of the static entity | null | | function | optional | The function to use to get SE instances | getAll |
StaticEntityType
extends the native ChoiceType
and can use any of its options.
Use the ParamConverter
All versions of static-entity-bundle with dependencies
symfony/dependency-injection Version ~3.0|^4.0
symfony/config Version ~3.0|^4.0
symfony/http-kernel Version ~3.0|^4.0
symfony/http-foundation Version ~3.0|^4.0
symfony/form Version ~3.0|^4.0
symfony/options-resolver Version ~3.0|^4.0
sensio/framework-extra-bundle Version ~3.0
byscripts/static-entity Version ~2.0