PHPackages                             veka-server/dispatcher - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. veka-server/dispatcher

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

veka-server/dispatcher
======================

Un dispatcher PSR-7 et PSR-15 minimaliste

0.1.1(8y ago)227MITPHP

Since Oct 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/veka-server/dispatcher)[ Packagist](https://packagist.org/packages/veka-server/dispatcher)[ RSS](/packages/veka-server-dispatcher/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Dispatcher
==========

[](#dispatcher)

Un dispatcher PSR-7 et PSR-15 ultra minimaliste. Il est basé sur tuto de grafikart.fr sur les middleware PSR. Il sera ammené a evolué pour maintenir les normes PSR.

Dependencies
------------

[](#dependencies)

Ce paquet requiere PHP 7.1 minimum.

Installation
------------

[](#installation)

Via composer lorsqu'une version stable sera dispo

```
composer require veka-server/dispatcher

```

Via le fichier JSON de composer - DEV VERSION

```
"veka-server/dispatcher": "dev-master@dev"

```

Utilisation
-----------

[](#utilisation)

Création de l'instance du dispatcher

```
// creation du dispatcher
$Dispatcher = new VekaServer\Dispatcher\Dispatcher();
```

Ajout des middlewares

```
// ajout des middlewares
$Dispatcher
    ->pipe(new \Middlewares\Whoops())
    ->pipe(new VK\Framework\MyMiddleware())
    ->pipe(new VK\Framework\MyMiddlewareA());
```

Création de la requete PSR-7 a traiter via GuzzleHttp

```
// recuperation de la requete recue
$request = \GuzzleHttp\Psr7\ServerRequest::fromGlobals();
```

Execute les middlewares sur la requete créer precedement et recupere la reponse

```
// lance l'execution des middlewares et recupere la reponse
$response = $Dispatcher->process($request);
```

Affiche la reponse a l'ecran

```
// si la reponse est presente ont l'affiche
if($response instanceof \Psr\Http\Message\ResponseInterface)
    $Dispatcher->send($response);
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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 ~0 days

Total

2

Last Release

3126d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/772a7f20fd967e8ace6dfb6ce4746f7882dc7523c0d2c885617f78edab4eae69?d=identicon)[veka-server](/maintainers/veka-server)

---

Tags

psrmiddlewarepsr7psr15

### Embed Badge

![Health badge](/badges/veka-server-dispatcher/health.svg)

```
[![Health](https://phpackages.com/badges/veka-server-dispatcher/health.svg)](https://phpackages.com/packages/veka-server-dispatcher)
```

###  Alternatives

[phps-cans/psr7-middleware-graphql

This package contains a http-interop middleware implementation to handle graphql request

1528.7k](/packages/phps-cans-psr7-middleware-graphql)[prooph/http-middleware

http middleware for prooph components

1145.0k](/packages/prooph-http-middleware)[compwright/php-session

Standalone session implementation that does not rely on the PHP session module or the $\_SESSION global, ideal for ReactPHP applications

189.4k](/packages/compwright-php-session)

PHPackages © 2026

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