survos / ez-bundle
configure EasyAdmin with attributes
Fund package maintenance!
2.10.14
2026-06-11 09:34 UTC
Requires
- php: ^8.5
- easycorp/easyadmin-bundle: ^4.25|^5.0
- symfony/config: ^8.1
- symfony/console: ^8.1
- symfony/dependency-injection: ^8.1
- symfony/framework-bundle: ^8.1
- symfony/http-kernel: ^8.1
Requires (Dev)
- nette/php-generator: ^4.2
- phpstan/phpstan-symfony: ^2.0
- symfony/phpunit-bridge: ^8.1
This package is auto-updated.
Last update: 2026-06-20 20:31:51 UTC
README
Lightweight tools that extend EasyAdmin (easycorp/easyadmin-bundle).
Features
- Define default fields via attributes
- Generate all entity crud controllers via a single command (code-bundle?)
- Automatic configuration of filters
- Base controller defaults to read-only for non-admins
Installation
Install the bundle using Composer:
composer require survos/ez-bundle
Usage
use Survos\EzBundle\Attribute\EzAdmin; use Survos\EzBundle\Attribute\EzField; use Survos\EzBundle\Attribute\Page; #[EzAdmin(icon: 'fa-regular fa-image', defaultSort: ['year' => 'DESC'], indexMax: 12)] class ForteObj { #[EzField(index: true, order: 1, filter: true)] public ?int $year = null; #[EzField(index: true, order: 2)] public ?string $title = null; }
Testing
Run the test suite:
./vendor/bin/phpunit
License
This bundle is released under the MIT license. See the LICENSE file for details.