Add a complete documentation site for Plugi with the following pages: - Readme.md: project overview, quick start, and key features - GettingStarted.md: installation guide, requirements, and first steps - Configuration.md: full reference for .env and config.php settings - Themes.md: theme structure, blocks, layouts, and asset compilation - Extensions.md: extension architecture, routes, blocks, and admin pages Also add index.html (Docsify entry point), _sidebar.md (navigation), favicon.ico, and .nojekyll to prevent GitHub Pages from interfering.
68 lines
2.4 KiB
Markdown
68 lines
2.4 KiB
Markdown

|
|
|
|
# Plugi
|
|
|
|
A lightweight PHP-based website builder with a drag-and-drop page editor, theming system, and extensible plugin architecture.
|
|
|
|
> A fork of [PHPagebuilder](https://github.com/HansSchouten/PHPagebuilder) by [Hans Schouten](https://github.com/HansSchouten).
|
|
|
|
## Quick Start
|
|
|
|
Get up and running in minutes:
|
|
|
|
1. **Download** Plugi and upload it to your webroot.
|
|
2. **Create** a `.env` file with your database credentials.
|
|
3. **Copy** `config.dist.php` to `config.php` and adjust settings.
|
|
4. **Navigate** to `/admin` and log in with the default credentials (`admin` / `admin`).
|
|
|
|
Or use Docker for a quick local setup:
|
|
|
|
```bash
|
|
docker-compose up -d
|
|
```
|
|
|
|
Then open `http://localhost:63000/admin` in your browser.
|
|
|
|
## Key Features
|
|
|
|
- **Page Builder** — Visual drag-and-drop editor powered by GrapesJS for designing pages without code.
|
|
- **Theming System** — Create custom themes with reusable blocks, layouts, and static pages.
|
|
- **Extensions** — Extend functionality with plugins that add routes, admin pages, blocks, and more.
|
|
- **Multilingual** — Built-in translation support for pages, themes, and extensions.
|
|
- **Caching** — Optional page caching for production performance.
|
|
- **Database-Driven** — All content stored in MySQL with automatic schema management.
|
|
|
|
## Documentation
|
|
|
|
| Section | Description |
|
|
|---------|-------------|
|
|
| [Getting Started](GettingStarted.md) | Installation, requirements, and first steps. |
|
|
| [Configuration](Configuration.md) | Full reference for `.env` and `config.php` settings. |
|
|
| [Themes](Themes.md) | How to create and structure custom themes with blocks and layouts. |
|
|
| [Extensions](Extensions.md) | How to build extensions that add routes, admin pages, blocks, and more. |
|
|
|
|
## Requirements
|
|
|
|
- **PHP 8.2** or higher
|
|
- **MySQL 8.0** or higher
|
|
- **Apache** or **Nginx** web server
|
|
- **PDO MySQL** extension enabled
|
|
|
|
## Project Structure
|
|
|
|
```
|
|
project-root/
|
|
├── index.php # Entry point
|
|
├── config.php # Configuration
|
|
├── .env # Environment variables
|
|
├── plugi-core/ # Core framework
|
|
├── extensions/ # Extensions (plugins)
|
|
├── themes/ # Themes
|
|
├── uploads/ # User-uploaded files
|
|
└── docs/ # Documentation
|
|
```
|
|
|
|
## License
|
|
|
|
Plugi is open-source software under MIT License.
|