PHPackages                             pawel-jakowczyk/routing - 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. pawel-jakowczyk/routing

ActiveLibrary[Framework](/categories/framework)

pawel-jakowczyk/routing
=======================

RoutingMiddleware which implements the Psr MiddlewareInterface

1.0.0(4y ago)0181MITPHP

Since May 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pawel-jakowczyk/routing)[ Packagist](https://packagist.org/packages/pawel-jakowczyk/routing)[ RSS](/packages/pawel-jakowczyk-routing/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (1)

PJ routing middleware
=====================

[](#pj-routing-middleware)

[![Tests](https://github.com/pawel-jakowczyk/routing/actions/workflows/php.yml/badge.svg)](https://github.com/pawel-jakowczyk/routing/actions/workflows/php.yml)

This repository holds the RoutingMiddleware which implements the Psr\\Http\\Server\\MiddlewareInterface. It can be instantiated by create method which requires symfony RouteCollection, or it can be instantiated by constructor which requires the RequestMatcherInterface object.

Instalation
-----------

[](#instalation)

```
composer require pawel-jakowczyk/routing

```

Usage
-----

[](#usage)

```
use Laminas\Diactoros\ServerRequest;
use PJ\Routing\RoutingMiddleware;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Server\RequestHandlerInterface;
use Symfony\Component\Routing\RouteCollection;

$middleware = RoutingMiddleware::create(new RouteCollection());
$middleware->process(
    new ServerRequest(),
    new class() implements RequestHandlerInterface
    {
        public function handle(ServerRequestInterface $request): ResponseInterface
        {
            return new Response();
        }
    }
);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

1819d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9250203?v=4)[pawel-jakowczyk](/maintainers/pawel-jakowczyk)[@pawel-jakowczyk](https://github.com/pawel-jakowczyk)

---

Top Contributors

[![pawel-jakowczyk](https://avatars.githubusercontent.com/u/9250203?v=4)](https://github.com/pawel-jakowczyk "pawel-jakowczyk (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pawel-jakowczyk-routing/health.svg)

```
[![Health](https://phpackages.com/badges/pawel-jakowczyk-routing/health.svg)](https://phpackages.com/packages/pawel-jakowczyk-routing)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k235.4M9.7k](/packages/symfony-framework-bundle)[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[laravel/octane

Supercharge your Laravel application's performance.

4.0k21.5M159](/packages/laravel-octane)

PHPackages © 2026

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