๐ Fire Framework
A while back, I set out to create something lightweight yet powerful for building web applications. The goal? A minimalist PHP framework that doesnโt get in your way but still packs a punch.
The Fire Framework was born out of a need for simplicity and scalability. With support for PHP 8+ and a modular architecture, itโs designed to keep your code clean, maintainable, and future-ready.
But I didnโt stop there. To make things even smoother, I put together the Fire Project Starter Kit โ a pre-configured setup with all the essentials to get you rolling in no time.
Why Fire?โ
Because sometimes, less is more. The Fire Framework is all about giving you the tools you need without the bloat. Whether youโre building a small project or something bigger, Fire has your back.
What Can You Expect from Fire?โ
Hereโs a breakdown of the features youโll find in the Fire Framework, along with their current development status:
| ๐งฉ Component | ๐ Description | ๐ Status | ๐ Note |
|---|---|---|---|
| App | Main class that starts the app and manages flow | โ Done | Entry point; handles router, config, etc. |
| Router | Handles routes (GET, POST, dynamic params, etc.) | โ Done | Supports dynamic routes and middleware |
| Middleware | System to run checks before controllers | โ Done | Useful for auth, CSRF, logging, etc. |
| Base Controller | Base class with methods like renderView(), redirect(), json() | โ Done | To be extended by other controllers |
| View Engine | View handling with layout support and variable injection | โ Not planned | Includes header/footer; not yet planned |
| Base Model | Base class for models + DB access via PDO | ๐ง In progress | Eloquent-style manager in development |
| Config | Centralized configuration (DB, env, errors, etc.) | ๐ค Maybe | Accessed via App or helper |
| Error Handler | Handles errors, exceptions, custom 404/500 | ๐ง In progress | 404 via router, 500 via try/catch |
| Autoloader (PSR-4) | PSR-4 compatible autoloader or Composer | โ Done | Follows standard; essential for scalability |
| Session Manager | Helper class for cleaner session management | ๐ค Maybe | E.g. Session::get('user_id') |
| Base Auth | Login/logout, auth check, current user handling | ๐ค Maybe | May use Session internally |
| Validator | Form input validation class with basic rules | ๐ค Maybe | Rules like required min:3, etc. |
| Helpers | Global helper functions (url(), dd(), csrf_token(), etc.) | ๐ง In progress | Includes dd(), url(), csrf_token() |
| CSRF Protection | CSRF tokens in forms + server-side verification | ๐ค Maybe | Could be tied to Middleware |
| CLI Tool | Basic script to generate controllers, models, etc. | ๐ง In progress | Command system via RegisterCommands |
| .htaccess / Routing | .htaccess file to route all traffic to index.php | โ Done | Required for pretty URLs |
Stay tuned as we continue to enhance the framework and bring these features to life.
Ready to Dive In?โ
Check out the following sections to get started:
- Fire Bites: Quick and easy steps to get up and running with Fire.
- Comprehensive Guide: A deep dive into everything Fire has to offer.
Welcome to the Fire community. Letโs build something amazing. ๐ฅ