Download the PHP package tourze/easy-admin-enum-field-bundle without Composer
On this page you can find all versions of the php package tourze/easy-admin-enum-field-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tourze/easy-admin-enum-field-bundle
More information about tourze/easy-admin-enum-field-bundle
Files in tourze/easy-admin-enum-field-bundle
Package easy-admin-enum-field-bundle
Short Description A Symfony bundle that provides enhanced enum field support for EasyAdmin with automatic badge rendering and advanced display options
License MIT
Informations about the package easy-admin-enum-field-bundle
EasyAdmin Enum Field Bundle
中文
A Symfony bundle that provides enhanced enum field support for EasyAdmin, with automatic badge rendering and advanced display options.
Features
- Enhanced enum field rendering with automatic badge support
- Seamless integration with PHP 8.1+ enums
- Automatic label generation from enum cases
- Customizable badge colors and styles
- Support for translatable enum labels
- Multiple choice selection capabilities
- Autocomplete widget support
- Native and expanded rendering modes
Installation
Dependencies
- PHP 8.1 or higher
- Symfony 6.4 or higher
- EasyAdmin Bundle 4.0 or higher
- tourze/enum-extra package
Quick Start
Basic Usage
Advanced Configuration
Enum Interface Support
Your enums can implement the Labelable and BadgeInterface interfaces for enhanced functionality:
Configuration Options
Badge Types
Available badge types: success, warning, danger, info, primary, secondary, light, dark
Widget Types
native: Use native HTML select widgetautocomplete: Use autocomplete widget with search functionality
Display Options
renderExpanded(): Render as radio buttons or checkboxesescapeHtml(): Control HTML escaping in field valuesallowMultipleChoices(): Enable multiple selection
Advanced Usage
Custom Field Configurator
You can create custom field configurators to apply consistent enum field settings:
Dynamic Badge Configuration
Use callable for dynamic badge assignment:
Contributing
Please see CONTRIBUTING.md for details.
License
The MIT License (MIT). Please see License File for more information.
All versions of easy-admin-enum-field-bundle with dependencies
symfony/config Version ^7.3
symfony/dependency-injection Version ^7.3
symfony/form Version ^7.3
symfony/framework-bundle Version ^7.3
symfony/http-kernel Version ^7.3
symfony/twig-bundle Version ^7.3
symfony/yaml Version ^7.3
tourze/bundle-dependency Version 1.*
tourze/enum-extra Version 1.*
tourze/symfony-dependency-service-loader Version 1.*