PHPackages                             tourze/easy-admin-attribute - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. tourze/easy-admin-attribute

ActiveLibrary

tourze/easy-admin-attribute
===========================

EasyAdminBundle Attribute Extend

0.1.1(10mo ago)129.0k1MITPHPPHP ^8.1CI passing

Since Mar 24Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/tourze/easy-admin-attribute)[ Packagist](https://packagist.org/packages/tourze/easy-admin-attribute)[ RSS](/packages/tourze-easy-admin-attribute/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (3)Versions (14)Used By (1)

EasyAdminBundle Attribute Extend
================================

[](#easyadminbundle-attribute-extend)

[English](README.md) | [中文](README.zh-CN.md)

[![Latest Version](https://camo.githubusercontent.com/dfd010a4f0ada6fb1040f5deac684168a9bfbbc7e32c5db8c3cedb71bd9565f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f656173792d61646d696e2d6174747269627574652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/easy-admin-attribute)[![Quality Score](https://camo.githubusercontent.com/65bcb9e9de1c720b78e877f05a1af0fd2ea7123afa1cd2e07448130a8c66d1c3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f746f75727a652f656173792d61646d696e2d6174747269627574652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/tourze/easy-admin-attribute)[![Total Downloads](https://camo.githubusercontent.com/e51601eec6a1fa2431413ee060f8eace250134fdf2eb03ecae76a89a0cdee2d8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f656173792d61646d696e2d6174747269627574652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/easy-admin-attribute)[![PHP Version](https://camo.githubusercontent.com/d8815669c99527a7a7ef858df7c64fa3a0d895a9f0e64f4dc1474b59d0a84342/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746f75727a652f656173792d61646d696e2d6174747269627574652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/easy-admin-attribute)[![License](https://camo.githubusercontent.com/97e0ec7666b3f87c4747d8e23e9be38fadb02e3df553a4a9d729464c7621e51d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746f75727a652f656173792d61646d696e2d6174747269627574652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/easy-admin-attribute)[![Code Coverage](https://camo.githubusercontent.com/8502de659afb174c754ab431aa5c818ff550972fa36a1ac52a4781da049d7a75/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f746f75727a652f656173792d61646d696e2d6174747269627574652e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/tourze/easy-admin-attribute)

A PHP attribute extension for EasyAdmin Bundle that provides a comprehensive set of attributes to configure admin interfaces using PHP 8 attributes. This package simplifies EasyAdmin configuration by leveraging PHP 8's attribute system to create clean, type-safe admin interfaces.

Table of Contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Requirements](#requirements)
- [Installation](#installation)
- [Quick Start](#quick-start)
    - [Basic Entity Configuration](#basic-entity-configuration)
    - [Permission-based Access Control](#permission-based-access-control)
    - [Advanced Configuration](#advanced-configuration)
- [Available Attributes](#available-attributes)
    - [Action Attributes](#action-attributes)
    - [Field Attributes](#field-attributes)
    - [Column Attributes](#column-attributes)
    - [Filter Attributes](#filter-attributes)
    - [Permission Attributes](#permission-attributes)
    - [Event Attributes](#event-attributes)
- [Configuration Examples](#configuration-examples)
    - [List Configuration](#list-configuration)
    - [Form Field Configuration](#form-field-configuration)
    - [Column Configuration](#column-configuration)
- [Advanced Features](#advanced-features)
    - [Tree View Support](#tree-view-support)
    - [Custom Events](#custom-events)
    - [Import/Export Configuration](#importexport-configuration)
- [Contributing](#contributing)
- [License](#license)

Features
--------

[](#features)

- **PHP 8 Attributes**: Configure EasyAdmin entities using modern PHP 8 attributes
- **Rich Field Types**: Support for Text, RichText, Select, ImagePicker, LinkageField and more
- **CRUD Operations**: Complete set of attributes for List, Create, Edit, Delete, Copy, Import/Export operations
- **Advanced Filtering**: Comprehensive filtering and search capabilities with keyword support
- **Form Validation**: Built-in form layout configuration and validation attributes
- **Data Formatting**: Automatic column formatting for FileSize, Boolean, Images, and other common types
- **Soft Delete**: Support for soft delete operations with configurable behaviors
- **Flexible Display**: Customizable display conditions, sorting options, and pagination
- **Permission System**: Role-based access control with AsPermission attribute
- **Event Handling**: Rich event system for customizing CRUD operations
- **Sub-CRUD Pages**: Drawer-style popup sub-pages for complex data management
- **Custom Actions**: Configurable header and row-level action buttons
- **Tree View**: Hierarchical data display with parent-child relationships
- **Remote Data Loading**: Support for large datasets with remote loading capabilities

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- EasyAdmin Bundle 4.x
- chrisullyott/php-filesize: ^4.2

Installation
------------

[](#installation)

```
composer require tourze/easy-admin-attribute
```

Quick Start
-----------

[](#quick-start)

### Basic Entity Configuration

[](#basic-entity-configuration)

```
