PHPackages                             ptadmin/easy - 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. [Admin Panels](/categories/admin)
4. /
5. ptadmin/easy

ActiveLibrary[Admin Panels](/categories/admin)

ptadmin/easy
============

表单模型构建，主要用于模型的创建

1.1.18(1mo ago)03131Apache-2.0PHPPHP ^7.4 || ^8.0CI failing

Since May 9Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/pangtou-com/ptadmin-easy)[ Packagist](https://packagist.org/packages/ptadmin/easy)[ Docs](https://www.pangtou.com)[ RSS](/packages/ptadmin-easy/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependencies (96)Versions (32)Used By (1)

 [![PTAdmin](./public/logo.jpg)](https://www.pangtou.com)

ptadmin/easy
============

[](#ptadmineasy)

[![Version](https://camo.githubusercontent.com/73561a274c703dc1d9b8b99f5d615539b52a70d612cb131e552d4cac565bf727/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f707461646d696e2f656173793f6c6162656c3d76657273696f6e)](https://packagist.org/packages/ptadmin/easy)[![Downloads](https://camo.githubusercontent.com/121286f77201dbf21b45179e8c966cbc6fc68dc66b7ac7056d2c4c0732e1c4ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f707461646d696e2f65617379)](https://packagist.org/packages/ptadmin/easy)[![License](https://camo.githubusercontent.com/8137cac7108b935761f953d74c3bde591ada21926c5036d73e8e34bf11005702/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f707461646d696e2f65617379)](https://packagist.org/packages/ptadmin/easy)[![Sponsor](https://camo.githubusercontent.com/984ce16e81eb059506cea2e5207c96a7781cadffe9f98261a2e028f904557933/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d53706f6e736f72266d6573736167653d254532253944254134)](https://www.pangtou.com/easy)[![PTAdmin](https://camo.githubusercontent.com/c4c746592fe7f3c3fbe126f22eeae0fddc6545fbcd9e2ceb719355589ae4eb80/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d446f6373266d6573736167653d505441646d696e266c6f676f3d72656164746865646f6373)](https://www.pangtou.com)

> PTAdmin 模型处理板块，可扩展自定义模型类型，扩展开发模型,需基于[PTAdmin](https://www.pangtou.com)使用

介绍
--

[](#介绍)

> 在日常开发中多数的CURD操作都是重复的，ptadmin-easy提供了一套通用的CURD操作方法，以及一套可扩展组件，可以帮助快速开发自定义模型，减少开发成本 结合[PTAdmin](https://www.pangtou.com)中功能模块可实现管理后台的快速搭建，搭配着我们的[插件市场](https://www.pangtou.com/addon.html)[模版市场](https://www.pangtou.com/templates.html)可以快速丰富系统功能。
>
> - [PTAdmin/Admin](https://gitee.com/ptadmin/ptadmin-admin) 管理后台
> - [PTAdmin/Build](https://gitee.com/ptadmin/ptadmin-build) 基于layui的表单构建工具
> - [PTAdmin/Addon](https://gitee.com/ptadmin/ptadmin-addon) PTAdmin插件应用管理
> - [PTAdmin/Html](https://gitee.com/ptadmin/ptadmin-html) 基于PHP生成html标签

安装
--

[](#安装)

```
composer require ptadmin/easy
```

使用
--

[](#使用)

> 详情操作手册请查看[文档地址](https://www.pangtou.com/docs/ptadmin/easy/index.html)

```
use PTAdmin\Easy\Easy;
# 模型构建,提供了模型创建的CURD方法
$mod = Easy::mod();

# 模型字段构建,提供了字段创建的CURD方法
$field = Easy::field();

# 表单处理
$modTableName = ""; // 创建模型时的标识名称
$form = \PTAdmin\Easy\EasyForm::handler($modTableName);
```

任务列表
----

[](#任务列表)

> 以下是当前支持的组件和功能信息，并在未来期望达到的功能

#### 表单组件支持

[](#表单组件支持)

- 文本类型
    - 单行文本
    - 多行文本
    - 富文本
    - 密码
    - 邮箱
    - 手机
    - 链接
    - 身份证
    - 颜色
- 附件类型
    - 单文件上传
    - 多文件上传
    - 单图上传
    - 多图上传
    - 单视频上传
    - 多视频上传
- 数值类型
    - 整数
    - 小数
    - 货币
    - 百分比
    - 计数器
    - 滑块
    - 评分
- 选项类型
    - 单选框
    - 多选框
    - 单选下拉框
    - 多选下拉框
    - 切换按钮
- 时间日期类型
    - 日期选择
    - 时间选择
    - 日期时间选择
    - 年选择
    - 月选择
    - 年月选择
    - 区间选择
- 对象类型
    - 树选择
    - 联动选择
    - 级联选择
    - 搜索选择
    - 键值对类型

#### 扩展支持

[](#扩展支持)

- 自定义组件
- 自定义扩展

#### 功能支持

[](#功能支持)

- 导入Excel数据
- 导出Excel数据
- 批量删除
- 批量修改
- 子表单加载
- 搜索功能
- 列表排序
- CURD

问题梳理： 1、模型新增时

- 扩展字段 > 新增模型时可新增字段，如模型中需要设定某个权限限制时需要新增字段。可以通过扩展字段的方式实现
- 扩展规则 > 可设置模型规则，如模型生成的表单类型，表单扩展

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance91

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~23 days

Recently: every ~4 days

Total

31

Last Release

42d ago

Major Versions

v0.1.3 → 1.1.02026-05-09

PHP version history (2 changes)v0.0.1PHP ^7.3|^8.0

1.1.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/06e7fe1f698f7d2e0dc1fc119608759de78a83c5eb613c1c7c7146453ddc39bc?d=identicon)[873934580](/maintainers/873934580)

---

Top Contributors

[![zane-xin](https://avatars.githubusercontent.com/u/16483916?v=4)](https://github.com/zane-xin "zane-xin (86 commits)")[![R1chardC](https://avatars.githubusercontent.com/u/186198551?v=4)](https://github.com/R1chardC "R1chardC (7 commits)")

---

Tags

htmlformadminaddonPTAdminMod

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ptadmin-easy/health.svg)

```
[![Health](https://phpackages.com/badges/ptadmin-easy/health.svg)](https://phpackages.com/packages/ptadmin-easy)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M327](/packages/laravel-ai)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

79227.1M231](/packages/laravel-mcp)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.3M27](/packages/yajra-laravel-oci8)[illuminate/queue

The Illuminate Queue package.

20433.0M1.8k](/packages/illuminate-queue)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k161.4k2](/packages/mike-bronner-laravel-model-caching)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
