PHPackages                             webman-tech/amis-admin - 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. webman-tech/amis-admin

ActiveLibrary

webman-tech/amis-admin
======================

Webman plugin webman-tech/amis-admin

v5.0.19(1mo ago)16802↓100%1[2 issues](https://github.com/webman-tech/amis-admin/issues)MITPHPPHP ^8.2CI passing

Since Jul 7Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/webman-tech/amis-admin)[ Packagist](https://packagist.org/packages/webman-tech/amis-admin)[ RSS](/packages/webman-tech-amis-admin/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (81)Used By (0)

webman-tech/amis-admin
======================

[](#webman-techamis-admin)

[amis](https://github.com/baidu/amis) For webman quick use ~

简介
--

[](#简介)

借用 amis 的 json 配置化能力，提供给 webman 快速搭建管理后台的能力

只做最基础的增删改查封装，具体的业务都不实现

特性：

- 无依赖：不依赖第三方组件，Laravel 系和 TP 系都能用（目前建议 laravel，tp 的实现未做）
- 无侵入：不设定任何初始 sql，业务无关
- 无前端：基本不需要考虑前端，熟悉 amis 和 php 即可
- 高扩展：amis 的各种组件支持全局控制和页面级控制
- 支持多应用模式：可以支持作用于类似 admin/agent/user 多后台形式

局限：

- 功能简单：没有admin帐号体系，没有菜单管理，没有权限管理

安装
--

[](#安装)

```
composer require webman-tech/amis-admin
```

要求 webman &gt; 1.4 且关闭了 controller\_reuse（原因：controller\_reuse 导致成员变量会被缓存，AmisSourceController 需要使用到成员做单个请求的缓存）

核心组件
----

[](#核心组件)

### AmisSourceController

[](#amissourcecontroller)

是一个基础的 CRUD 资源控制器基类，负责控制页面结构，操作按钮权限等。详细信息请参考 [Controller 和 Repository 设计理念与使用方式](./docs/controller_repository.md)。

### Repository

[](#repository)

Repository 是 AmisSourceController 中使用的数据访问层封装，负责提供对数据的增删改查操作。支持多种实现方式，包括 [EloquentRepository](./docs/controller_repository.md#eloquentrepository-%E4%BD%9C%E7%94%A8)用于与 Laravel Eloquent ORM 交互。

### Component

[](#component)

Amis 组件的封装，目前仅封装了常用的组件类型和属性，但 amis 的所有组件都可以通过 `Component::make(['type' => 'xxx'])`来配置。所有组件也都支持 `schema()`方法来覆盖（支持嵌套覆盖）参数。详细信息请参考 [Amis 组件使用指南](./docs/amis_component.md)。

### PresetsHelper

[](#presetshelper)

PresetsHelper 是一个用于简化 AMIS 管理后台字段配置的辅助工具。它允许开发者通过预设的方式统一管理字段在不同场景下的展示和验证规则。详细信息请参考 [PresetsHelper 使用说明](./docs/preset_helper.md)。

使用
--

[](#使用)

参考使用：

> 注意: Amis 实际上是前后端分离的框架，即数据接口是数据接口，页面配置（json）是页面配置， 因此不能用常规的 PHP 框架下的 admin 框架（如 laravel-admin 等）来思考

### 基本使用流程

[](#基本使用流程)

1. 创建 Repository 处理数据逻辑
2. 创建 Controller 继承 AmisSourceController
3. 在 Controller 中返回 Amis 页面结构

示例代码：

```
// UserRepository.php
use WebmanTech\AmisAdmin\Repository\EloquentRepository;

class UserRepository extends EloquentRepository
{
    public function __construct()
    {
        parent::__construct(User::class);
    }
}

// UserController.php
use WebmanTech\AmisAdmin\Controller\AmisSourceController;

class UserController extends AmisSourceController
{
    protected function createRepository(): RepositoryInterface
    {
        return new UserRepository();
    }
}
```

高级功能
----

[](#高级功能)

### 多应用支持

[](#多应用支持)

支持在同一个项目中创建多个独立的后台应用，例如 admin、agent、user 等。详细信息请参考 [多应用支持](./docs/multi_app.md)。

### 常用配置

[](#常用配置)

提供了一些常见的配置示例，如修改 dialog 大小、全局配置组件等。详细信息请参考 [配置技巧](./docs/tips.md)。

其他
--

[](#其他)

- 更多文档见 [docs](./docs)

不使用 cdn
-------

[](#不使用-cdn)

配合使用 [kriss/composer-assets-plugin](https://github.com/krissss/composer-assets-plugin)

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance86

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~18 days

Total

76

Last Release

55d ago

Major Versions

v0.1.1 → v1.1.02022-07-14

v1.4.2 → v2.0.02022-09-18

v1.0.2 → v3.0.02025-06-25

v1.0.28 → v5.0.02025-11-24

PHP version history (3 changes)v0.1.0PHP &gt;=7.4

v2.3.0PHP ^7.4||^8.0

v1.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/b4053cfc9956b8c15b9bc4c9c7c2bad625d16d1b6d9191019b2a25cc0972d955?d=identicon)[kriss](/maintainers/kriss)

---

Top Contributors

[![krissss](https://avatars.githubusercontent.com/u/10680903?v=4)](https://github.com/krissss "krissss (39 commits)")

---

Tags

amisamis-adminwebman

### Embed Badge

![Health badge](/badges/webman-tech-amis-admin/health.svg)

```
[![Health](https://phpackages.com/badges/webman-tech-amis-admin/health.svg)](https://phpackages.com/packages/webman-tech-amis-admin)
```

###  Alternatives

[webman-tech/auth

webman auth plugin

146.7k1](/packages/webman-tech-auth)[webman-tech/laravel-validation

Webman plugin webman-tech/laravel-validation

1812.8k3](/packages/webman-tech-laravel-validation)

PHPackages © 2026

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