madong-code/madong-admin
About
Standard PHP Webman admin backend skeleton, with RBAC, CRUD generator, workflow and Vue3 Vben frontend.
Web & AppsMeasured star growth
- in 24h
- 0
- in 7 days
- +108
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
Original
Madong Admin Backend Framework
A high-performance admin backend platform built on PHP Webman, using a front-end / back-end separation + dual front-end architecture
中文 | English
Introduction
Madong is a blazing-fast development platform built on the PHP Webman framework, providing a stable, high-performance API service layer for front-end applications. The backend uses a clear domain-layered architecture and a first-class plugin system; the front end supports dual front-end UIs — two selectable Admin UIs (Single / Aura) for the backend panel, plus an independent Web site front-end shared with the multi-tenant edition.
The front end and back end are deployed separately. The front-end directory must be downloaded or created separately.
Dual Front-End UI Repository Addresses
Madong supports dual front-end UIs: the admin panel offers two selectable UIs (Single / Aura), and the site front-end is shared with the multi-tenant edition. Pull from GitHub by default; switch to the Gitee / GitCode mirrors if the network is restricted.
The Gitee / GitCode mirrors live under the
motion-code/…org, same repo names as GitHub; adjust if the actual address differs. Pick either Admin UI fortemplate/admin; the site usesweb-nuxt, shared with the multi-tenant edition. Install / download commands pull from GitHub by default, e.g.php webman madong-download:frontend --admin; for mirrors, configuredependencies.npm.registryetc., or specify a mirror repository address directly.
Tech Stack
| Technology | Description |
|---|---|
| PHP | 8.2 ~ 8.4, core development language |
| Webman | 2.2, high-performance PHP framework |
| MySQL | 8.0+, database |
| Redis | 7.0+, cache service |
| Composer | 2.x, dependency manager |
| Nginx / Apache | Web server |
Project Structure
madong/
├── backend/ # Backend (CLI installer included; one-click install configures automatically)
└── template/ # Front-end templates (admin / web / install; download separately, see table above)
For more modules, directories and developer docs, see the official documentation: madong.tech
Core Features
- Authentication: JWT-based authentication mechanism
- Authorization: Fine-grained permission control system
- Caching: Integrated Redis cache
- Communication: Mail / SMS / notification infrastructure
- File Upload: Multiple storage backends supported
- Internationalization: Multi-language configuration support
- Plugin System: Third-party extensions (codegen, demo, etc.)
- SSE Push: Real-time Server-Sent Events progress feedback
- Layered Architecture: Clear DAO / Service layering
- Code Generator: Auto-generates controllers, models and service-layer code
- Database Migration: Versioned database management
- Dual Front-End UI: Two selectable Admin UIs plus an independent site front-end (shared with the multi-tenant edition)
Requirements
- PHP 8.2 ~ 8.4
- MySQL 8.0+
- Redis 7.0+
- Nginx / Apache
- Composer 2.x+
- Node.js (with pnpm, for front-end builds)
Installation & Deployment
1. Prepare the environment
Install: PHP 8.2 ~ 8.4, MySQL 8.0+, Redis 7.0+, Composer 2.x+, Node.js (with pnpm), Git.
2. Install backend dependencies
cd backend
composer install
3. Download front-end assets
Option A: Command download (recommended) — pulls from the GitHub repos in the table above by default:
cd backend
php webman madong-download:frontend # admin + web
php webman madong-download:frontend --admin # admin only
php webman madong-download:frontend --web # web only
php webman madong-download:frontend -b develop # specific branch
php webman madong-download:frontend -f # force overwrite
Option B: Manual download — clone from the GitHub URLs in the "Dual Front-End UI Repository Addresses" table; pick either Admin UI into template/admin, and the site into template/web.
4. Launch the installer
http://127.0.0.1:8500/install
5. Start the service
cd backend
php start.php start # development
php start.php start -d # production (daemonized)
The service runs at http://127.0.0.1:8500 by default.
Configuration
Database, Redis and other connection settings are written automatically by the one-click installer — no manual editing required.
For more configuration options and advanced usage, see the official documentation: madong.tech
Plugin Dependency Management
Plugins declare dependencies in config/info.php via require.composer (backend) and npm_require.admin|web|common (frontend). Install / uninstall is handled by the dependency pipeline in core/business/plugin:
- Declaration merge: merged into
composer.jsonandtemplate/{admin,web}/package.json; conflicts followdependencies.conflict.strategy(skip/override/fail, defaultskip) - Real installation:
dependencies.auto_installdefaults tofalse(merge only, print pending commands); settrueto runcomposer updateandpnpm installautomatically - Network resilience:
dependencies.network.retrycontrols retries;dependencies.composer.mirror/dependencies.npm.registryconfigure mirrors - Reference counting: a shared dependency is only removed when the last plugin using it is uninstalled
- State persistence: dependency state is stored in the plugin's
config/installed.php(no database); a failed install does not abort the plugin install by default - Transaction rollback: failed install / uninstall restores dependency declarations and template directories
If the network is unavailable during install, retry later:
php webman madong-plugin:install-deps <plugin> --status # show status
php webman madong-plugin:install-deps <plugin> # re-run install
In the admin panel (Module Market → Detail) a status badge and an "Install Dependencies" button appear when dependencies are pending / failed. The same data is available via GET /adminapi/plugin/{key}/dependencies and GET /adminapi/plugin/{key}/dependencies/install (SSE).
AI Development Skills
A set of Skills for AI coding assistants, covering backend, front-end and cross-platform scenarios:
- Repository: madong-code/madong-admin-skills (see table above)
- Structure:
backend/(backend scaffolding),frontend/(front-end scaffolding),cross/(cross-platform) - Usage: clone locally, load the relevant skills into your AI assistant, and follow their SOPs
Official Forum
Report bugs or suggest improvements in the community: http://www.madong.tech
Contributing
Contributions are very welcome! Open an Issue or submit a Pull Request.
- Fork the repository
- Create your branch:
git checkout -b feature/xxxx - Commit:
git commit -am 'feat(function): add xxxxx' - Push:
git push origin feature/xxxx - Open a Pull Request
Commit Convention
Reference Conventional Commits: feat / fix / style / perf / refactor / revert / test / docs / chore / ci / types / wip.
Community
- Documentation: https://madong.tech
- Discussion: QQ group 690671595
License
Apache License
Explore related projects
Loading…