fresh / doctrine-enum-bundle
Provides support of ENUM type for Doctrine2 in Symfony applications.
Fund package maintenance!
fre5h
Installs: 4 480 335
Dependents: 15
Suggesters: 1
Security: 0
Stars: 457
Watchers: 11
Forks: 74
Open Issues: 11
Type:symfony-bundle
Requires
- php: >=8.1
- doctrine/common: ^3.4
- doctrine/dbal: ^3.6
- doctrine/doctrine-bundle: ^2.9
- doctrine/orm: ^2.15
- symfony/config: ^6.1
- symfony/dependency-injection: ^6.1
- symfony/doctrine-bridge: ^6.1
- symfony/framework-bundle: ^6.1
- symfony/http-kernel: ^6.1
- symfony/validator: ^6.1
- twig/twig: ^3.6
Requires (Dev)
- escapestudios/symfony2-coding-standard: ^3.13
- jetbrains/phpstorm-attributes: ^1.0
- phpstan/phpstan: ^1.10
- phpstan/phpstan-doctrine: ^1.3
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-symfony: ^1.3
- phpunit/phpunit: ^10.1
- slam/phpstan-extensions: ^6.0
- symfony/form: ^6.1
- dev-main
- 9.x-dev
- v9.1.0
- v9.0.4
- v9.0.3
- v9.0.2
- v9.0.1
- v9.0.0
- 8.x-dev
- v8.1.2
- v8.1.1
- v8.1.0
- v8.0.0
- 7.x-dev
- v7.5.1
- v7.5.0
- v7.4.0
- v7.3.7
- v7.3.6
- v7.3.5
- v7.3.4
- v7.3.3
- v7.3.2
- v7.3.1
- v7.3.0
- v7.2.0
- v7.1.3
- v7.1.2
- v7.1.1
- v7.1.0
- v7.0.2
- v7.0.1
- v7.0.0
- v6.6.4
- v6.6.3
- v6.6.2
- v6.6.1
- v6.6.0
- v6.5.1
- v6.5.0
- v6.4.0
- v6.3.0
- v6.2.5
- v6.2.4
- v6.2.3
- v6.2.2
- v6.2.1
- v6.2.0
- v6.1.0
- v6.0.2
- v6.0.1
- v6.0.0
- v5.3.0
- v5.2.0
- v5.1.2
- v5.1.1
- v5.1.0
- v5.0.2
- v5.0.1
- v5.0.0
- v4.8.2
- v4.8.1
- v4.8.0
- v4.7.1
- v4.7.0
- v4.6.5
- v4.6.4
- v4.6.3
- v4.6.2
- v4.6.1
- v4.6
- v4.5
- v4.4
- v4.3
- v4.2
- v4.1
- v4.0
- v3.3
- v3.2
- v3.1
- v3.0
- v2.6
- v2.5
- v2.4
- v2.3
- v2.2
- v2.1
- v2.0
- v1.3
- v1.2
- v1.1
- v1.0
This package is auto-updated.
Last update: 2023-08-29 06:42:29 UTC
README
📦 Provides ENUM type support for Doctrine in Symfony applications.
Supported platforms 🧐
PostgreSQL | SQLite | MySQL | MSSQL |
---|
Installation 🌱
composer req fresh/doctrine-enum-bundle
Choose the version you need
Bundle Version (X.Y.Z) | PHP | Symfony | Doctrine Bundle | Comment |
---|---|---|---|---|
9.1.* |
>= 8.1.0 |
>= 6.1 |
>= 2.9 |
Current version |
8.1.* |
>= 8.1.0 |
5.4, 6.0 |
>= 2.5 |
Previous version |
Check the config/bundles.php
file
By default, Symfony Flex will add this bundle to the config/bundles.php
file.
But in case you ignored contrib-recipe
during bundle installation it would not be added. In this case add the bundle manually:
# config/bundles.php return [ // Other bundles... Fresh\DoctrineEnumBundle\FreshDoctrineEnumBundle::class => ['all' => true], // Other bundles... ];
Usage 🧑🎓
Features 🎁
- NULL values
- Default value
- Building the form
- Additional methods
- Common types
- Readable ENUM values in templates
- ENUM constants in templates
- ENUM values in templates
- Hook for Doctrine migrations
Contributing 🤝
Read the CONTRIBUTING file.