PHPackages                             jmarcos16/mini-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. jmarcos16/mini-router

ActiveLibrary[Framework](/categories/framework)

jmarcos16/mini-router
=====================

Mini Router for PHP

v1.0.0(1y ago)010[1 PRs](https://github.com/jmarcos16/mini-router/pulls)MITPHPPHP ^8.0

Since Aug 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jmarcos16/mini-router)[ Packagist](https://packagist.org/packages/jmarcos16/mini-router)[ RSS](/packages/jmarcos16-mini-router/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (9)Used By (0)

### Mine router

[](#mine-router)

This is a simple router for PHP. It is a project that allows you to create routes using the PHP Attributes, it also allows you to pass parameters and Class that will be executed when the route is called, we also use the PSR-4 standard to autoload and some Libraries to help in the development of the project, such as: [PHP-DI](https://php-di.org/) and [Symfony HttpFoundation](https://symfony.com/doc/current/components/http_foundation.html).

### Requirements

[](#requirements)

- PHP 8.0 or higher
- Composer

### Installation

[](#installation)

```
composer install jmarcos161/mine-router
```

### Usage

[](#usage)

In the `public/index.php` file, you must include the `vendor/autoload.php` file and the `Router` class, as shown below:

```
require __DIR__ . '/../../vendor/autoload.php';

use MiniRouter\Router;
use Symfony\Component\HttpFoundation\Request;
use Src\Controllers\YourController;

$routes = [
    YourController::class,
];

$router = new Router($routes);

$router->handle(Request::createFromGlobals());
```

In the `YourController` class, you must create a method with the `#[Route]` attribute, as shown below:

```
use MiniRouter\Attributes\Route;

class YourController
{
    #[Route('/index')]
    public function index()
    {
        return echo 'Hello World';
    }
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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

Every ~1 days

Total

4

Last Release

635d ago

Major Versions

v0.4.0-alpha → v1.0.02024-08-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/6bbe247378f0640ee05073d5bd09ef59f396dbe0df276b35f20a523327f0a03f?d=identicon)[jmarcos16](/maintainers/jmarcos16)

---

Top Contributors

[![jmarcos16](https://avatars.githubusercontent.com/u/68954264?v=4)](https://github.com/jmarcos16 "jmarcos16 (33 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jmarcos16-mini-router/health.svg)

```
[![Health](https://phpackages.com/badges/jmarcos16-mini-router/health.svg)](https://phpackages.com/packages/jmarcos16-mini-router)
```

###  Alternatives

[laravel/reverb

Laravel Reverb provides a real-time WebSocket communication backend for Laravel applications.

1.5k9.4M48](/packages/laravel-reverb)[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k5](/packages/elgg-elgg)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[silverstripe/framework

The SilverStripe framework

7213.5M2.5k](/packages/silverstripe-framework)[illuminate/routing

The Illuminate Routing package.

1238.6M2.3k](/packages/illuminate-routing)[shopware/storefront

Storefront for Shopware

684.2M148](/packages/shopware-storefront)

PHPackages © 2026

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