PHPackages                             byscripts/static-entity-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. byscripts/static-entity-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

byscripts/static-entity-bundle
==============================

Add Symfony3 and Symfony4 ParamConverter and FormType to StaticEntity

4.1.0(6y ago)05592[3 PRs](https://github.com/ByScripts/ByscriptsStaticEntityBundle/pulls)MITPHPPHP &gt;=5.3.3

Since Apr 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ByScripts/ByscriptsStaticEntityBundle)[ Packagist](https://packagist.org/packages/byscripts/static-entity-bundle)[ RSS](/packages/byscripts-static-entity-bundle/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (10)Dependencies (15)Versions (13)Used By (0)

Byscripts Static Entity Bundle
==============================

[](#byscripts-static-entity-bundle)

This bundle brings ParamConverter and FormType supports to Symfony 3 and Symfony 4 for the [StaticEntity library](https://github.com/ByScripts/ByscriptsStaticEntity).

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
------------

[](#installation)

### Add the package in your composer.json

[](#add-the-package-in-your-composerjson)

At command line, run `composer require byscripts/static-entity-bundle:~4.0`

### Enable the Bundle

[](#enable-the-bundle)

#### Symfony 3

[](#symfony-3)

Add `Byscripts\Bundle\StaticEntityBundle\ByscriptsStaticEntityBundle` to the `app/AppKernel.php` file.

#### Symfony 4

[](#symfony-4)

Add `Byscripts\Bundle\StaticEntityBundle\ByscriptsStaticEntityBundle::class => ['all' => true]` to the `config/bundles.php` file.

Usage
-----

[](#usage)

### Create a static entity

[](#create-a-static-entity)

First, create a static entity on your project (for example, in `src/AppBundle/StaticEntity`)

```
