survos/ez-bundle
最新稳定版本:2.0.96
Composer 安装命令:
composer require survos/ez-bundle
包简介
configure EasyAdmin with attributes
关键字:
README 文档
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.
统计信息
- 总下载量: 309
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-26