PHPackages                             juneszh/alight-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. [Framework](/categories/framework)
4. /
5. juneszh/alight-admin

ActiveLibrary[Framework](/categories/framework)

juneszh/alight-admin
====================

Alight Admin is a quick admin panel extension based on the Alight framework.

v2.1.2(3mo ago)8349↓50%MITPHPPHP &gt;=7.4

Since Sep 4Pushed 1mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (3)Versions (18)Used By (0)

Alight-Admin
============

[](#alight-admin)

Alight-Admin is a quick admin panel extension based on the [Alight framework](https://github.com/juneszh/alight).

[![login screenshot](example/image/screenshot_login.png)](example/image/screenshot_login.png)

[![console screenshot](example/image/screenshot_console.png)](example/image/screenshot_console.png)

Features
--------

[](#features)

- **No front-end coding required**. Built-in **Ant Design UI** (React) components and driven by PHP interface.
- Quickly build and easily configure **CRUD** pages with Table/From render.
- Includes **authorization**, **permissions** and **user management**.
- Customizable **Charts** displayed in the console by PHP, such as **Line**, **Column**, **Pie**, etc.

Alight Family
-------------

[](#alight-family)

ProjectDescription[Alight](https://github.com/juneszh/alight)Basic framework built-in routing, database, caching, etc.[Alight-Admin](https://github.com/juneszh/alight-admin)A full admin panel extension based on Alight. No front-end coding required.[Alight-Project](https://github.com/juneszh/alight-project)A template for beginner to easily create web applications by Alight/Alight-Admin.Requirements
------------

[](#requirements)

PHP 7.4+

Usage
-----

[](#usage)

Alight-Admin can be quickly built using [Alight-Project](https://github.com/juneszh/alight-project).

### Creating Project

[](#creating-project)

```
$ composer create-project juneszh/alight-project {PROJECT_DIRECTORY}
```

### Initialize Admin

[](#initialize-admin)

The following commands will build the runtime environment required by **Alight-Admin**, such as installing composer package, inserting configuration options, creating database tables, and downloading front-end resources. Please make sure the [database has been configured](https://github.com/juneszh/alight#database).

```
$ cd {PROJECT_DIRECTORY}
$ composer require juneszh/alight-admin
$ composer run admin-install
$ composer run admin-download
```

### Try the CRUD

[](#try-the-crud)

Suppose we already have a database table: **admin\_user**

NameDatatypeDefaultidSMALLINTAUTO\_INCREMENTaccountVARCHARpasswordVARCHARnameVARCHARemailVARCHARrole\_idTINYINT0statusTINYINT1auth\_keyVARCHARcreate\_timeTIMESTAMPCURRENT\_TIMESTAMPNow, create a php table function under controller. For example:

File: app/controller/admin/Test.php

```
