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(5y ago)0181MITPHP

Since May 19Pushed 5y 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 3w 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

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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

1871d 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.8k543.8M20.1k](/packages/laravel-framework)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[symfony/framework-bundle

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

3.6k251.7M11.6k](/packages/symfony-framework-bundle)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)

PHPackages © 2026

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