PHPackages                             jblv/daimakuai - 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. jblv/daimakuai

ActiveLibrary[Admin Panels](/categories/admin)

jblv/daimakuai
==============

Daimakuai 是一个可以快速帮你构建后台管理的工具，它提供的页面组件和表单元素等功能，能帮助你使用很少的代码就实现功能完善的后台管理功能

v2.0.0(8y ago)1011668MITPHPPHP &gt;=7.0.0CI failing

Since May 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/daimakuai/daimakuai)[ Packagist](https://packagist.org/packages/jblv/daimakuai)[ Docs](https://github.com/happyonion/daimakuai)[ RSS](/packages/jblv-daimakuai/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (8)Versions (7)Used By (8)

Daimakuai
=========

[](#daimakuai)

[![Build Status](https://camo.githubusercontent.com/868845b311ba2bdf71488ffac98b2600049935473ed25926eccc041f0e1504c0/68747470733a2f2f7472617669732d63692e6f72672f6461696d616b7561692f6461696d616b7561692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/daimakuai/daimakuai)[![StyleCI](https://camo.githubusercontent.com/48e1ab6f97316955905c7693660f8bff36ba6a0ee5d1a2b623465fb78e02f7c1/68747470733a2f2f7374796c6563692e696f2f7265706f732f39303634303439322f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/90640492)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2f7993ec02c61bcba0f1b8005aec43cd007be423c6103cb2fefd8b4acfff08df/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6461696d616b7561692f6461696d616b7561692f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/daimakuai/daimakuai/?branch=master)[![Packagist](https://camo.githubusercontent.com/6955aff69f44040e1b9d005f7f23323c1ca30a5e39cb6d686ab4a394d27771e8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6a626c762f6461696d616b7561692e7376673f6d61784167653d32353932303030)](https://packagist.org/packages/jblv/daimakuai)[![Latest Stable Version](https://camo.githubusercontent.com/d8d580a588bf433c66ce4d057571750991903beb525d50cffba86eaca00ae848/68747470733a2f2f706f7365722e707567782e6f72672f6a626c762f6461696d616b7561692f762f737461626c652e737667)](https://packagist.org/packages/jblv/daimakuai)[![Total Downloads](https://camo.githubusercontent.com/41438edee1463ae138c94f81cbd96ef3c42ff5e23851d617e0a5c0e4a1077ac8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a626c762f6461696d616b7561692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jblv/daimakuai)[![Awesome Laravel](https://camo.githubusercontent.com/8deb0d78e81ca47c3c3533bd8de23d75fa7a6f4f3e8fb067f246c42e62a8d06a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f417765736f6d652d4c61726176656c2d627269676874677265656e2e737667)](https://github.com/happyonion/daimakuai)[![Join the chat at https://gitter.im/daimakuai/daimakuai](https://camo.githubusercontent.com/764f8b3532b3acc5d7c107b6816cde4ac9914fcf84a301f36206e25b238a5eb4/68747470733a2f2f6261646765732e6769747465722e696d2f6461696d616b7561692f6461696d616b7561692e737667)](https://gitter.im/daimakuai/daimakuai?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

`daimakuai` 是一个可以快速帮你构建后台管理的工具，它提供的页面组件和表单元素等功能，能帮助你使用很少的代码就实现功能完善的后台管理功能。

[Demo](http://dmk.75271.com/admin) 账号/密码:admin/admin

截图
--

[](#截图)

PC端访问

[![daimakuai](https://raw.githubusercontent.com/daimakuai/daimakuai/master/screen.png)](https://raw.githubusercontent.com/daimakuai/daimakuai/master/screen.png)

手机端访问

[![daimakuai](https://raw.githubusercontent.com/daimakuai/daimakuai/master/screen-1.png)](https://raw.githubusercontent.com/daimakuai/daimakuai/master/screen-1.png)

安装
--

[](#安装)

首先确保安装好了 `Composer` `Laravel`，并且数据库连接设置正确，如果没有安装，请访问[安装Laravel](https://learnku.com/docs/laravel/5.5/installation/1282#installing-laravel)进行安装。

```
Laravel 5.5

composer require jblv/daimakuai "dev-master" -vvv

示例如：

> 修改composer为国内镜像，加速下载
composer config -g repo.packagist composer https://packagist.phpcomposer.com

composer create-project laravel/laravel=5.5.* bbcshop -vvv

composer require jblv/daimakuai "2.0" -vvv

注意:
> bt宝塔服务器需要先关闭以下几个禁用函数: putenv  pcntl_signal proc_open

在`config/app.php`加入`ServiceProvider`:

```

Jblv\\Admin\\Providers\\AdminServiceProvider::class

```

然后运行下面的命令完成安装：

Laravel 5.5

> 安装前，对.env里的数据库等信息进行修改

php artisan vendor:publish --provider="Jblv\Admin\AdminServiceProvider"

php artisan admin:install

```

启动服务后，在浏览器打开 `http://localhost/admin/` ,使用用户名 `admin` 和密码 `admin`登陆.

宝塔部署注意
------

[](#宝塔部署注意)

1、 伪静态增加: location / {
try\_files $uri $uri/ /index.php$is\_args$query\_string;
}

2、网站目录去掉 防跨站攻击(open\_basedir)

3、网站目录 选择根目录，运行目录选择 public

默认配置
----

[](#默认配置)

安装完成之后，`daimakuai`所有的配置都在`config/admin.php`文件中。

使用文档
----

[](#使用文档)

- [快速开始](/docs/zh/quick-start.md)
- [路由配置](/docs/zh/router.md)
- [菜单配置](/docs/zh/menu.md)
- [显示布局](/docs/zh/layout.md)
- [数据模型表格](/docs/zh/model-grid.md)
- [数据模型表单](/docs/zh/model-form.md)
    - [图片/文件上传](/docs/zh/form-upload.md)
    - [form组件管理](/docs/zh/field-management.md)
- [组件](/docs/zh/widgets/table.md)
    - [表格](/docs/zh/widgets/table.md)
    - [表单](/docs/zh/widgets/form.md)
    - [盒子](/docs/zh/widgets/box.md)
    - [信息盒子](/docs/zh/widgets/info-box.md)
    - [选项卡](/docs/zh/widgets/tab.md)
    - [滑动相册](/docs/zh/widgets/carousel.md)
    - [折叠容器](/docs/zh/widgets/collapse.md)
    - 数据图表 TODO
- [权限控制](/docs/zh/permission.md)

目录结构
----

[](#目录结构)

安装完成之后，后台的安装目录为`app/Admin`，之后大部分的后台开发编码工作都是在这个目录下进行。

```
app/Admin
├── Controllers
│   ├── ExampleController.php
│   └── HomeController.php
└── routes.php

```

`app/Admin/routes.php`文件用来配置后台路由，详细使用请阅读[路由配置](/docs/zh/router.md)。

`app/Admin/Controllers`目录用来存放后台路由器文件，该目录下的`HomeController.php`文件是后台首页的显示控制器，`ExampleController.php`为实例文件。

快速开始
----

[](#快速开始)

用`Laravel`自带的`users`表举例,表结构为：

```
CREATE TABLE `users` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `password` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
  `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  UNIQUE KEY `users_email_unique` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
```

对应的数据模型为文件 `App\User.php`

`daimakuai`可以通过使用以下几步来快速生成`users`表的`CURD`操作页面：

### 1.添加路由器

[](#1添加路由器)

使用下面的命令来创建一个对应`App\User`模型的路由器

```
php artisan admin:make UserController --model=App\\User
```

上面的命令会创建路由器文件`app/Admin/Controllers/UserController.php`.

### 2.添加路由配置

[](#2添加路由配置)

在`daimakuai`的路由配置文件`app/Admin/routes.php`里添加一行：

```
$router->resource('users', UserController::class);

```

### 3.添加左侧菜单栏连接

[](#3添加左侧菜单栏连接)

打开`http://localhost:8000/admin/auth/menu`,添加对应的menu

然后就能在后台管理页面的左侧边栏看到用户管理页面的链接入口了。

### 4.创建表格表单

[](#4创建表格表单)

剩下的工作就是构建数据表格和表单了，打开 `app/Admin/Contollers/UserController.php`,找到`form()`和`grid()`方法，然添加构建代码,更多详细使用请查看[model-grid](/docs/zh/model-grid.md)和[model-form](/docs/zh/model-form.md)。

其它
--

[](#其它)

`daimakuai` 基于以下组件或者服务:

- [Laravel](https://laravel.com/)
- [AdminLTE](https://almsaeedstudio.com/)
- [Datetimepicker](http://eonasdan.github.io/bootstrap-datetimepicker/)
- [CodeMirror](https://codemirror.net/)
- [font-awesome](http://fontawesome.io)
- [moment](http://momentjs.com/)
- [Google map](https://www.google.com/maps)
- [Tencent map](http://lbs.qq.com/)
- [bootstrap-fileinput](https://github.com/kartik-v/bootstrap-fileinput)
- [jquery-pjax](https://github.com/defunkt/jquery-pjax)
- [Nestable](http://dbushell.github.io/Nestable/)
- [noty](http://ned.im/noty/)
- [X-editable](http://github.com/vitalets/x-editable)
- [bootstrap-number-input](https://github.com/wpic/bootstrap-number-input)

交流
--

[](#交流)

QQ群:14086762

License
-------

[](#license)

`daimakuai` is licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

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

Total

3

Last Release

3091d ago

Major Versions

v1.5.0 → v2.0.02017-11-26

PHP version history (2 changes)v1.0.0PHP &gt;=5.6.4

v1.5.0PHP &gt;=7.0.0

### Community

Maintainers

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

---

Top Contributors

[![daimakuai](https://avatars.githubusercontent.com/u/24948088?v=4)](https://github.com/daimakuai "daimakuai (110 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (1 commits)")[![happyonion](https://avatars.githubusercontent.com/u/36020736?v=4)](https://github.com/happyonion "happyonion (1 commits)")[![verylove](https://avatars.githubusercontent.com/u/7344362?v=4)](https://github.com/verylove "verylove (1 commits)")

---

Tags

adminadmin-dashboardadmin-lteadmin-templateadmin-themedaimakuailaravellaravelgridformadminmanagechart

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jblv-daimakuai/health.svg)

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

###  Alternatives

[encore/laravel-admin

laravel admin

11.2k3.1M444](/packages/encore-laravel-admin)

PHPackages © 2026

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