PHPackages                             phoenix-code21/firecore-router - 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. phoenix-code21/firecore-router

ActiveLibrary[Framework](/categories/framework)

phoenix-code21/firecore-router
==============================

Um roteador PHP leve e moderno para aplicações web.

v1.0.0(1y ago)03MITPHPPHP &gt;=7.4

Since Jun 14Pushed 1y agoCompare

[ Source](https://github.com/Phoenix-code21/firecore-router)[ Packagist](https://packagist.org/packages/phoenix-code21/firecore-router)[ RSS](/packages/phoenix-code21-firecore-router/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

Firecore Router
===============

[](#firecore-router)

Um roteador simples, leve e flexível para aplicações PHP, com suporte a middlewares, rotas nomeadas e grupos com prefixo e namespace.

🧩 Instalação
------------

[](#-instalação)

Você pode instalar via [Composer](https://getcomposer.org):

```
composer require phoenix-code21/firecore-router
```

🚀 Exemplo de uso

```
use Firecore\Router\Router;

$router = new Router;

// Base opcional (ex: subdiretório)
$router->setBasePath('/meu-projeto');

// Rota GET simples
$router->get('/', function () {
    echo 'Página inicial';
});

// Rota com parâmetros
$router->get('/user/{id}', function ($id) {
    echo "Usuário: {$id}";
});

// Rotas com grupo e namespace
$router->namespace('App\\Controllers');
$router->group('/admin', function ($router) {
    $router->get('/dashboard', 'DashboardController@index');
});

// Middlewares
$router->middleware('App\\Middleware\\Auth@handle')
       ->get('/painel', function () {
           echo 'Área protegida';
       });

// Erro 404 personalizado
$router->setError('/erro', 404, function () {
    echo 'Página não encontrada';
});

// Executa o roteador
$router->dispatch();
```

⚙️ Recursos

✅ Rotas com GET e POST

✅ Grupos com prefixo e namespace

✅ Middlewares encadeáveis

✅ Rotas nomeadas com name() e getRoute()

✅ Tratamento de erros por código (ex: 404)

✅ PSR-4 autoload e compatível com Composer

🧪 Testes

Execute os testes com:

```
composer test
```

Os testes usam PHPUnit e estão localizados em tests/.

📄 Licença: MIT License

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance48

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

384d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/347497921d631ac8d40e2d4c5644c683e362186877c1585bd7bde63c00dea833?d=identicon)[phoenixcode21](/maintainers/phoenixcode21)

---

Top Contributors

[![Phoenix-code21](https://avatars.githubusercontent.com/u/84428222?v=4)](https://github.com/Phoenix-code21 "Phoenix-code21 (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phoenix-code21-firecore-router/health.svg)

```
[![Health](https://phpackages.com/badges/phoenix-code21-firecore-router/health.svg)](https://phpackages.com/packages/phoenix-code21-firecore-router)
```

###  Alternatives

[laravel/dusk

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

1.9k39.6M299](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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