Download the PHP package juneszh/alight-admin without Composer
On this page you can find all versions of the php package juneszh/alight-admin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download juneszh/alight-admin
More information about juneszh/alight-admin
Files in juneszh/alight-admin
Package alight-admin
Short Description Alight Admin is a quick admin panel extension based on the Alight framework.
License MIT
Informations about the package alight-admin
Alight-Admin
Alight-Admin is a quick admin panel extension based on the Alight framework.
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
Project | Description |
---|---|
Alight | Basic framework built-in routing, database, caching, etc. |
Alight-Admin | A full admin panel extension based on Alight. No front-end coding required. |
Alight-Project | A template for beginner to easily create web applications by Alight/Alight-Admin. |
Requirements
PHP 7.4+
Usage
Alight-Admin can be quickly built using Alight-Project.
Creating Project
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.
Try the CRUD
Suppose we already have a database table: admin_user | Name | Datatype | Default |
---|---|---|---|
id | SMALLINT | AUTO_INCREMENT | |
account | VARCHAR | ||
password | VARCHAR | ||
name | VARCHAR | ||
VARCHAR | |||
role_id | TINYINT | 0 | |
status | TINYINT | 1 | |
auth_key | VARCHAR | ||
create_time | TIMESTAMP | CURRENT_TIMESTAMP |
Now, create a php table function under controller. For example:
File: app/controller/admin/Test.php
Then, we will get the table page as:
(In order to make the code more compact, some settings are omitted, such as: column title, status point, etc.)
Next, we go ahead and create a form function:
Then, we will get the form page as:
The last step, configure routing and side menu:
File: app/config/route/admin.php
File: app/config/admin/menu.php
Finally, the database table user_admin has completed CRUD creation. See API LIST for more information.
Try the Console Charts
Create charts with built-in data.
File: app/config/admin/console.php
Create charts with api data.
File: app/config/admin/console.php
File: app/controller/admin/Test.php
File: app/config/route/admin.php
Finally, we will get the console page as:
API
- Alight\Admin\Table
- ::button()
- ->action()
- ->batch()
- ->color()
- ->column()
- ->expand()
- ->if()
- ->param()
- ->role()
- ->title()
- ->toolbar()
- ->url()
- ->variant()
- ::column()
- ->align()
- ->copyable()
- ->database()
- ->ellipsis()
- ->enum()
- ->fixed()
- ->hide()
- ->html()
- ->role()
- ->search()
- ->sort()
- ->title()
- ->tooltip()
- ->type()
- ->width()
- ::expand()
- ->align()
- ->copyable()
- ->enum()
- ->fixed()
- ->hide()
- ->html()
- ->role()
- ->sort()
- ->title()
- ->tooltip()
- ->width()
- ::statistic()
- ->title()
- ->value()
- ::summary()
- ->avg()
- ->precision()
- ::render()
- ::button()
- Alight\Admin\Form
- ::create()
- ->copy()
- ::field()
- ->confirm()
- ->database()
- ->default()
- ->delete()
- ->disabled()
- ->enum()
- ->grid()
- ->hide()
- ->placeholder()
- ->raw()
- ->readonly()
- ->required()
- ->role()
- ->rules()
- ->title()
- ->tooltip()
- ->type()
- ::render()
- ::create()
- Alight\Admin\Console
- ::chart()
- ->api()
- ->config()
- ->grid()
- ->role()
- ::build()
- ::chart()
- Alight\Admin\Menu
- ::item()
- ->action()
- ->role()
- ->url()
- ::subItem()
- ->action()
- ->role()
- ->url()
- ::build()
- ::item()
Credits
- Composer requires
- UI components
License
- MIT license
All versions of alight-admin with dependencies
juneszh/alight Version *
gregwar/captcha Version ^1.2
symfony/var-exporter Version >=5.4