From 2115a94a1fe606cd5894bd6ecb71bdab5a507278 Mon Sep 17 00:00:00 2001 From: sld-admin Date: Mon, 27 Apr 2026 09:04:05 +0100 Subject: [PATCH] Added README.md --- README.md | 164 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 162 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a4d6e4a..e868a24 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,163 @@ -# sld-php-template +# SLD PHP Template -Basic php framework for php plain websites. \ No newline at end of file +A lightweight and modular PHP starter framework for building plain PHP websites without heavy dependencies. + +This project is designed to provide a clean structure, reusable components, and a simple initialization system to speed up development while keeping full control over the codebase. + +--- + +## ๐Ÿš€ Features + +- โšก Lightweight and fast (no external frameworks required) +- ๐Ÿ“ Clean and scalable folder structure +- ๐Ÿ”ง Centralized configuration system +- ๐Ÿงฉ Modular templates (header, footer, includes) +- ๐ŸŽจ Basic frontend setup (CSS variables, animations, JS helpers) +- ๐Ÿ›  Ready-to-use initialization system +- โŒ Built-in error pages (environment & database) + +--- + +## ๐Ÿ“‚ Project Structure + +``` +. +โ”œโ”€โ”€ admin/ +โ”œโ”€โ”€ assets/ +โ”‚ โ”œโ”€โ”€ css/ +โ”‚ โ”œโ”€โ”€ img/ +โ”‚ โ””โ”€โ”€ js/ +โ”œโ”€โ”€ config/ +โ”œโ”€โ”€ functions/ +โ”œโ”€โ”€ includes/ +โ”œโ”€โ”€ pages/ +โ”œโ”€โ”€ templates/ +โ”œโ”€โ”€ themes/ +โ”œโ”€โ”€ public/ +โ”œโ”€โ”€ index.php +โ””โ”€โ”€ README.md +``` + +--- + +## โš™๏ธ Configuration + +All core configuration is located inside the `config/` directory: + +- `init.php` โ†’ Application bootstrap +- `constants.php` โ†’ Global constants +- `settings.php` โ†’ App settings +- `db.php` โ†’ Database connection +- `functions_init.php` โ†’ Function loader + +--- + +## ๐Ÿง  How It Works + +1. The application starts from `index.php` +2. Core initialization is handled by the config system +3. Templates are loaded dynamically (`header.php`, `footer.php`) +4. Pages are rendered from the `pages/` directory +5. Custom logic can be added via the `functions/` folder + +--- + +## ๐ŸŽจ Frontend + +The project includes a minimal frontend setup: + +### CSS System +- Variables-based color system with multiple shades +- Basic layout styles +- Animation utilities + +### JavaScript +- Simple helper functions like dynamic year rendering + +--- + +## ๐Ÿ›  Usage + +1. Clone the repository: + ```bash + git clone https://github.com/your-username/sld-php-template.git + ``` + +2. Move it into your web server directory + +3. Configure: + - Database (`config/db.php`) + - Environment settings (`config/settings.php`) + +4. Open in browser: + ``` + http://localhost/your-project + ``` + +--- + +## ๐Ÿ“„ Pages + +- `home.php` โ†’ Main homepage +- `db-error.php` โ†’ Database error page +- `env-error.php` โ†’ Environment error page + +--- + +## ๐Ÿงฉ Templates + +Reusable layout components: + +- `templates/header.php` +- `templates/footer.php` + +--- + +## ๐Ÿงช Status + +๐Ÿšง This project is currently in development. +New features and improvements will be added progressively. + +--- + +## ๐Ÿ“Œ Roadmap (Planned) + +- [ ] Routing system +- [ ] Theme engine +- [ ] Admin panel structure +- [ ] CLI tools +- [ ] Environment (.env) support +- [ ] Basic authentication system + +--- + +## ๐Ÿค Contributing + +Contributions, ideas, and feedback are welcome. +Feel free to open issues or pull requests. + +--- + +## ๐Ÿ“œ License + +This project is licensed under the MIT License. +See the `LICENSE` file for details. + +--- + +## ๐Ÿ‘ค Author + +Created by Simone (SLD) + +--- + +## ๐Ÿ’ก Philosophy + +This project aims to stay: + +- Simple +- Transparent +- Framework-free +- Easy to extend + +No magic, just clean PHP. \ No newline at end of file