69 lines
2.8 KiB
Markdown
69 lines
2.8 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
|
|
|
|
Follow the [installation guide](installation.md) for complete manual deployment and local Docker instructions. In brief:
|
|
|
|
1. Use PHP 8.4 with `pdo_mysql` and MySQL 8.0 or a compatible database.
|
|
2. Copy `.env.dist` to `.env` and `config.dist.php` to `config.php`.
|
|
3. Configure the database, public `BASE_URL`, and a unique admin login in `.env`; create the database and user.
|
|
4. Sign in at `/admin/auth` and apply the schema through the Website Manager database update flow.
|
|
|
|
For local development only, the Compose stack starts with:
|
|
|
|
```bash
|
|
docker compose up --build -d
|
|
```
|
|
|
|
Then open `http://localhost:63000`. Do not use the supplied Compose stack as a production deployment.
|
|
|
|
## 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 is stored in MySQL; create or update the schema through the Website Manager.
|
|
|
|
## Documentation
|
|
|
|
| Section | Description |
|
|
|---------|-------------|
|
|
| [Installation](installation.md) | Manual deployment, local Docker development, database setup, and security guidance. |
|
|
| [Getting Started](GettingStarted.md) | Requirements and a short setup overview. |
|
|
| [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.4**
|
|
- **MySQL 8.0** or higher
|
|
- **Apache** web server for the documented manual setup
|
|
- **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.
|