A lightweight PHP 8.1+ web framework offering a modular approach to building modern web applications.
- Router – Define clean and intuitive routes for your application.
- Input Validator – Easily validate and sanitize user inputs.
- Template Renderer – Render views with a simple and flexible templating engine.
- Database Abstraction Layer – Interact with your database using a consistent and straightforward API.
- Lightweight ORM – Map database records to PHP objects effortlessly.
- htmx Integration – Static methods for htmx use cases.
- And many more!
- PHP 8.1 or higher
- Composer
Add the following to your composer.json file:
{
"require": {
"fzb/fzb": "dev-master"
}
}Then run:
composer updateYou can use individual components of the FZB Framework as needed. For example, to use the router:
use Fzb\Router;
$router = new Router();
$router->get('/home', function() {
echo 'Welcome Home!';
});Tests are located in the tests directory. To run the tests:
composer testMake sure PHPUnit is installed and configured
This project is licensed under the FZB Source-Available License.
- You may use the code as-is for personal or internal projects.
- Contributions are welcome via pull requests.
- You may not fork, redistribute, or rebrand this codebase without explicit written permission from the author.
See LICENSE for full terms.