PHPackages                             nomhub/blazer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. nomhub/blazer

ActiveProject[Framework](/categories/framework)

nomhub/blazer
=============

Blazer PHP MVC Framework

00PHPCI passing

Since Feb 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Nom-nom-hub/blazer)[ Packagist](https://packagist.org/packages/nomhub/blazer)[ RSS](/packages/nomhub-blazer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [![Blazer Logo](docs/assets/blazer-logo.svg)](docs/assets/blazer-logo.svg)

Blazer Framework
================

[](#blazer-framework)

 A lightning-fast PHP framework for modern web applications

 [![Latest Stable Version](https://camo.githubusercontent.com/a357f1f2c853774e3d31f96f1434dd4e70bdc257b3b72ea2301dca286d82e8cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f6d6875622f626c617a65722e737667)](https://packagist.org/packages/nomhub/blazer) [![Total Downloads](https://camo.githubusercontent.com/a785ae1e34ef6cd02846cb9cbd5b2ceb3dd435168395e4a2ac0cd0df873b40e0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6f6d6875622f626c617a65722e737667)](https://packagist.org/packages/nomhub/blazer) [![License](https://camo.githubusercontent.com/47de37cb17d4a0f0e55c55000619d81e4017159c07cb671eaf723d3b06ff6316/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e6f6d6875622f626c617a65722e737667)](https://packagist.org/packages/nomhub/blazer) [![PHP Version](https://camo.githubusercontent.com/854124dd57cfd3aad3184fca9760bf1f33a5ec1e5d080cfbe8aa4e3337ba46e6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e302d3838393242462e737667)](https://php.net)

⚡️ Quick Start
--------------

[](#️-quick-start)

Create a new Blazer project using Composer:

```
composer create-project nomhub/blazer my-app
cd my-app
php blazer serve
```

Visit `http://localhost:8000` in your browser to see your application!

🎯 Features
----------

[](#-features)

- **⚡️ Lightning Fast**: Optimized for speed with minimal overhead
- **🔄 Live Reload**: Built-in development server with automatic page refresh
- **🗺️ Elegant Routing**: Clean and expressive route definitions
- **🎮 MVC Architecture**: Well-organized structure following MVC pattern
- **🔌 Database Layer**: Simple PDO-based database abstraction
- **✨ Form Validation**: Built-in validation system
- **🔒 Session Management**: Secure session handling
- **🧩 View Components**: Reusable UI components
- **💾 Caching System**: Multiple cache drivers for performance
- **🛡️ Middleware System**: Flexible request/response pipeline
- **🔧 CLI Tools**: Command line interface for common tasks

📚 Documentation
---------------

[](#-documentation)

### Routing

[](#routing)

```
// config/routes.php
$router->get('/', 'HomeController@index');
$router->get('/users/{id}', 'UserController@show');
$router->post('/api/users', 'Api\UserController@store');
```

### Controllers

[](#controllers)

```
namespace App\Controllers;

use Blazer\Core\Controller;

class HomeController extends Controller
{
    public function index()
    {
        return $this->view('welcome', [
            'title' => 'Welcome to Blazer'
        ]);
    }
}
```

### Models

[](#models)

```
namespace App\Models;

use Blazer\Core\Model;

class User extends Model
{
    protected static $table = 'users';

    public static function findActive()
    {
        return static::where('status', 'active')->get();
    }
}
```

### Database

[](#database)

```
// Using the DB class
use Blazer\Core\Database\DB;

// Run a query
$users = DB::query("SELECT * FROM users WHERE active = ?", [true]);

// Using models
$activeUsers = User::where('active', true)->get();
$user = User::find(1);
```

### Views

[](#views)

```
// In your controller
return $this->view('users/profile', [
    'user' => $user,
    'title' => 'User Profile'
]);

// app/Views/users/profile.php
DOCTYPE html>

    Welcome, !

```

🛠️ Development
--------------

[](#️-development)

### Directory Structure

[](#directory-structure)

```
my-app/
├── app/
│   ├── Controllers/
│   ├── Models/
│   └── Views/
├── config/
│   ├── config.php
│   └── routes.php
├── public/
│   └── index.php
├── src/
│   └── Core/
├── storage/
│   ├── cache/
│   └── logs/
└── vendor/

```

### Configuration

[](#configuration)

Copy `.env.example` to `.env` and update your settings:

```
APP_NAME=Blazer
APP_ENV=local
APP_DEBUG=true
APP_URL=http://localhost:8000

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_DATABASE=blazer
DB_USERNAME=root
DB_PASSWORD=
```

🤝 Contributing
--------------

[](#-contributing)

We welcome contributions! Please feel free to submit a Pull Request.

📝 License
---------

[](#-license)

The Blazer Framework is open-sourced software licensed under the [MIT license](LICENSE.md).

💖 Support
---------

[](#-support)

If you find Blazer helpful, please consider:

- Giving it a ⭐️ on GitHub
- Sharing it with friends and colleagues
- [Contributing](#contributing) to the project

---

 Made with ❤️ by [Teck](https://github.com/Nom-nom-hub)

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f18f57f4cfd149c2488d7e116864dc384bc2a889e2d2ecc4a0d49bbc2ae7f22?d=identicon)[teckmill](/maintainers/teckmill)

### Embed Badge

![Health badge](/badges/nomhub-blazer/health.svg)

```
[![Health](https://phpackages.com/badges/nomhub-blazer/health.svg)](https://phpackages.com/packages/nomhub-blazer)
```

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
