fresh / doctrine-enum-bundle
Provides support of ENUM type for Doctrine2 in Symfony applications.
Fund package maintenance!
fre5h
Installs: 5 620 553
Dependents: 14
Suggesters: 1
Security: 0
Stars: 460
Watchers: 10
Forks: 75
Open Issues: 11
Type:symfony-bundle
Requires
- php: >=8.1
- doctrine/common: ^3.4
- doctrine/dbal: ^4.0
- doctrine/doctrine-bundle: ^2.12
- doctrine/orm: ^3.1
- symfony/config: ^7.0
- symfony/dependency-injection: ^7.0
- symfony/doctrine-bridge: ^7.0
- symfony/framework-bundle: ^7.0
- symfony/http-kernel: ^7.0
- symfony/validator: ^7.0
- twig/twig: ^3.9
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: ^11.1
- slam/phpstan-extensions: ^6.3
- symfony/form: ^7.0
- dev-main
- v11.1.0
- v11.0.1
- v11.0.0
- v10.1.0
- v10.0.0
- 9.x-dev
- v9.2.0
- 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
- dev-symfony7.2
This package is auto-updated.
Last update: 2024-12-05 06:56:06 UTC
README
📦 Provides ENUM type support for Doctrine in Symfony applications.
Supported platforms 🧐
Installation 🌱
composer req fresh/doctrine-enum-bundle
Choose the version you need
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.