Skip to main content

๐Ÿš€ 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
AppMain class that starts the app and manages flowโœ… DoneEntry point; handles router, config, etc.
RouterHandles routes (GET, POST, dynamic params, etc.)โœ… DoneSupports dynamic routes and middleware
MiddlewareSystem to run checks before controllersโœ… DoneUseful for auth, CSRF, logging, etc.
Base ControllerBase class with methods like renderView(), redirect(), json()โœ… DoneTo be extended by other controllers
View EngineView handling with layout support and variable injectionโŒ Not plannedIncludes header/footer; not yet planned
Base ModelBase class for models + DB access via PDO๐Ÿšง In progressEloquent-style manager in development
ConfigCentralized configuration (DB, env, errors, etc.)๐Ÿค” MaybeAccessed via App or helper
Error HandlerHandles errors, exceptions, custom 404/500๐Ÿšง In progress404 via router, 500 via try/catch
Autoloader (PSR-4)PSR-4 compatible autoloader or Composerโœ… DoneFollows standard; essential for scalability
Session ManagerHelper class for cleaner session management๐Ÿค” MaybeE.g. Session::get('user_id')
Base AuthLogin/logout, auth check, current user handling๐Ÿค” MaybeMay use Session internally
ValidatorForm input validation class with basic rules๐Ÿค” MaybeRules like required min:3, etc.
HelpersGlobal helper functions (url(), dd(), csrf_token(), etc.)๐Ÿšง In progressIncludes dd(), url(), csrf_token()
CSRF ProtectionCSRF tokens in forms + server-side verification๐Ÿค” MaybeCould be tied to Middleware
CLI ToolBasic script to generate controllers, models, etc.๐Ÿšง In progressCommand system via RegisterCommands
.htaccess / Routing.htaccess file to route all traffic to index.phpโœ… DoneRequired 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:


Welcome to the Fire community. Letโ€™s build something amazing. ๐Ÿ”ฅ