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)127MITPHP

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 2w ago

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 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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

3175d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3823643?v=4)[Veka](/maintainers/veka-server)[@veka-server](https://github.com/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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69734.4M144](/packages/algolia-algoliasearch-client-php)[gotenberg/gotenberg-php

A PHP client for interacting with Gotenberg, a developer-friendly API for converting numerous document formats into PDF files, and more!

3845.9M26](/packages/gotenberg-gotenberg-php)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M524](/packages/shopware-core)[eliashaeussler/cache-warmup

Composer package to warm up website caches, based on a given XML sitemap

75419.2k9](/packages/eliashaeussler-cache-warmup)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35729.6k2](/packages/telnyx-telnyx-php)

PHPackages © 2026

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