Skip to content

foozbat/fzb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI

FZB Framework

A lightweight PHP 8.1+ web framework offering a modular approach to building modern web applications.


🚀 Features

  • 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!

⚙️ Requirements

  • PHP 8.1 or higher
  • Composer

📦 Installation

Add the following to your composer.json file:

{
    "require": {
        "fzb/fzb": "dev-master"
    }
}

Then run:

composer update

🛠️ Usage

You 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!';
});

🧪 Testing

Tests are located in the tests directory. To run the tests:

composer test

Make sure PHPUnit is installed and configured

⚠️ License & Usage

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.

About

Simple PHP Web Application Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages