protung / easyadmin-plus-bundle
Extensions for EasyAdmin: base CRUD controllers, also for editing entities through DTOs, an entity field linking to the CRUD controller of the related entity, JSON and callback-configurable fields, an enum filter, menu item matchers, and PHPUnit test cases for dashboards and CRUD actions.
Package info
github.com/protung/easyadmin-plus-bundle
Type:symfony-bundle
pkg:composer/protung/easyadmin-plus-bundle
Requires
- php: ~8.4.0 || ~8.5.0
- doctrine/orm: ^2.20.9 || ^3.5.0
- easycorp/easyadmin-bundle: ~4.29.16 || ~5.6.1 || ~5.7.0
- php-standard-library/php-standard-library: ^3.3.0 || ^4.0.0 || ^5.0.0 || ^6.0.0
- symfony/config: ^6.4 || ^7.4 || ^8.0
- symfony/dependency-injection: ^6.4 || ^7.4 || ^8.0
- symfony/doctrine-bridge: ^6.4 || ^7.4 || ^8.0
- symfony/event-dispatcher: ^6.4 || ^7.4 || ^8.0
- symfony/form: ^6.4 || ^7.4 || ^8.0
- symfony/framework-bundle: ^6.4 || ^7.4 || ^8.0
- symfony/http-foundation: ^6.4 || ^7.4 || ^8.0
- symfony/http-kernel: ^6.4 || ^7.4 || ^8.0
- symfony/options-resolver: ^6.4 || ^7.4 || ^8.0
- symfony/property-access: ^6.4 || ^7.4 || ^8.0
- symfony/security-core: ^6.4 || ^7.4 || ^8.0
- symfony/service-contracts: ^2.5 || ^3.0
- symfony/translation: ^6.4 || ^7.4 || ^8.0
- symfony/translation-contracts: ^2.5 || ^3.0
- symfony/twig-bundle: ^6.4 || ^7.4 || ^8.0
- twig/twig: ^3.27.0
Requires (Dev)
- carthage-software/mago: ^1.57.0
- doctrine/coding-standard: ^14.0.0
- ergebnis/composer-normalize: ^2.54.0
- php-standard-library/phpstan-extension: ^2.1.0
- phpstan/phpstan: ^2.2.16
- phpstan/phpstan-deprecation-rules: ^2.0.5
- phpstan/phpstan-phpunit: ^2.0.19
- phpstan/phpstan-strict-rules: ^2.0.12
- phpstan/phpstan-symfony: ^2.0.20
- phpunit/phpunit: ^13.1.14
- roave/security-advisories: dev-master
- speicher210/functional-test-bundle: ^2.0.0
- symfony/error-handler: ^6.4.44 || ^7.4.17 || ^8.1.5
- symfony/var-exporter: ^6.4 || ^7.4 || ^8.0
Suggests
- speicher210/functional-test-bundle: To test EasyAdmin dashboards and CRUD controllers with the test cases in Protung\EasyAdminPlusBundle\Test
Provides
None
Conflicts
Replaces
None
README
Extensions for EasyAdmin: DTO-backed CRUD controllers, entity and JSON fields, an enum filter, menu item matchers, and PHPUnit test cases for dashboards and CRUD actions.
Installation
Require using composer:
$ composer require protung/easyadmin-plus-bundle
Symfony Flex registers the bundle. Without Flex, add it to config/bundles.php:
return [ // ... Protung\EasyAdminPlusBundle\ProtungEasyAdminPlusBundle::class => ['all' => true], // ... ];
Confirmation modal with a title and a body
Since EasyAdmin 5.7, a custom message passed to askConfirmation() is shown as body text and the modal's title is hidden, while the delete confirmation keeps a title and a description. To give another action's confirmation a title and a body like the delete one's, pass a ConfirmationModal:
use Protung\EasyAdminPlusBundle\Action\ConfirmationModal; use function Symfony\Component\Translation\t; Action::new('close') ->linkToCrudAction('close') ->askConfirmation(new ConfirmationModal(t('close.confirmation_modal.title'), t('close.confirmation_modal.content')));
A label for the confirmation button can still be passed as askConfirmation()'s second argument. Before EasyAdmin 5.7, and for the delete action, the title and the body are shown joined as a single message. Batch actions keep EasyAdmin's batch confirmation.
License
This package is licensed using the MIT License.
Please have a look at LICENSE.md.