survos/ez-bundle

configure EasyAdmin with attributes

Fund package maintenance!
kbond

Installs: 75

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:symfony-bundle

pkg:composer/survos/ez-bundle

2.0.51 2025-11-07 10:30 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.