PHPackages                             k9u/request-mapper - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. k9u/request-mapper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

k9u/request-mapper
==================

Annotatable Request Mapper library for PHP

0.13.0(5y ago)0561[6 PRs](https://github.com/kawanamiyuu/K9u.RequestMapper/pulls)1MITPHPPHP ^7.4CI failing

Since Jun 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/kawanamiyuu/K9u.RequestMapper)[ Packagist](https://packagist.org/packages/k9u/request-mapper)[ RSS](/packages/k9u-request-mapper/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (8)Versions (20)Used By (1)

K9u.RequestMapper
=================

[](#k9urequestmapper)

[![badge](https://github.com/kawanamiyuu/K9u.RequestMapper/workflows/CI/badge.svg)](https://github.com/kawanamiyuu/K9u.RequestMapper/actions?query=workflow%3ACI)

Annotatable Request Mapper library for PHP.

Usage
-----

[](#usage)

```
use K9u\RequestMapper\Annotation\GetMapping;
use My\App\Presentation\Blog;

class BlogController
{
    /**
     * @GetMapping("/blogs/{id}")
     */
    public function show($id)
    {
        // snip(find blog by $id)
        $blog = [
            'id' => $id,
            'title' => 'Hello world!',
            ...
        ];

        return $blog;
    }
}
```

```
use K9u\RequestMapper;

$request = $serverRequestFactory->createServerRequest('GET', 'http://example.com/blogs/1', $_SERVER);

$handlerResolver = new HandlerResolver('/path/to/src/Presentation');
$handler = $handlerResolver($request);

// $handler->class      = 'My\App\Presentation\Blog\BlogController'
// $handler->method     = 'show'
// $handler->pathParams = ['id' => '1']

$handlerClassFactory = ...;
/* @var HandlerClassFactoryInterface $handlerClassFactory */

$handlerMethodArgumentsResolver = ...;
/* @var HandlerMethodArgumentsResolverInterface $handlerMethodArgumentsResolver */

$handlerInvoker = new HandlerInvoker($handlerClassFactory, $handlerMethodArgumentsResolver);
$result = $handlerInvoker($handler, $request);

var_export($result);
// array (
//   'id' => 1,
//   'title' => 'Hello world!',
//   ...
// )
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.8% 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 ~3 days

Total

13

Last Release

2112d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/83cb12b2e0fa43bb9ec62e161039cc7226b0077a631b62d0b25e9e6c00b46a1d?d=identicon)[kawanamiyuu](/maintainers/kawanamiyuu)

---

Top Contributors

[![kawanamiyuu](https://avatars.githubusercontent.com/u/1461463?v=4)](https://github.com/kawanamiyuu "kawanamiyuu (59 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (6 commits)")

---

Tags

annotationpsr-7request-mapperrequest-mappingrouterroutingrouterroutingannotation

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/k9u-request-mapper/health.svg)

```
[![Health](https://phpackages.com/badges/k9u-request-mapper/health.svg)](https://phpackages.com/packages/k9u-request-mapper)
```

###  Alternatives

[bramus/router

A lightweight and simple object oriented PHP Router

1.1k458.8k49](/packages/bramus-router)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)

PHPackages © 2026

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