定制 survos/ez-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-26