survos/ez-bundle

configure EasyAdmin with attributes

Maintainers

👁 tacman1123

Package info

github.com/survos/ez-bundle

Type:symfony-bundle

pkg:composer/survos/ez-bundle

Fund package maintenance!

kbond

Statistics

Installs: 1 223

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

2.10.25 2026-06-25 11:39 UTC

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 497f6a62b0fa7b121bda6a60c269527cbb010b65

  • Tac Tacelosky <tacman.woop@gmail.com>

symfonysymfony-ux

This package is auto-updated.

Last update: 2026-06-25 11:40:19 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.