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

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

air-php/dispatcher
==================

A route dispatching library.

v0.3.2(10y ago)03.0k11PHPPHP &gt;=5.5.0

Since Mar 23Pushed 10y ago1 watchersCompare

[ Source](https://github.com/air-php/dispatcher)[ Packagist](https://packagist.org/packages/air-php/dispatcher)[ RSS](/packages/air-php-dispatcher/feed)WikiDiscussions master Synced 1w ago

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

Dispatcher
==========

[](#dispatcher)

[![Build Status](https://camo.githubusercontent.com/db65fadf6f1573258ce859f0ac57401fc2307e8586495cc7586401ade9e202bb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6169722d7068702f646973706174636865722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/air-php/dispatcher/build-status/master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/a8f22d30be77b6e69731f4565c99d226d810ee42b5e5c39e4091fc66fcb45e45/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6169722d7068702f646973706174636865722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/air-php/dispatcher/?branch=master)

The dispatcher library includes classes for dispatching web application routes.

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

[](#installation)

Installation via [Composer](https://getcomposer.org/) is recommended.

```
"require": {
    "air-php/dispatcher": "dev-master"
}

```

Dispatcher
----------

[](#dispatcher-1)

The `dispatch()` method of the `Dispatcher` class takes a `ResolvedRequest` (compatible with Air's [ResolvedRequest interface](https://github.com/air-php/routing/blob/master/src/ResolvedRequest/ResolvedRequestInterface.php)) and dispatches it.

If present, the dispatcher will call a `before()` and `after()` method on the target controller, before and after it calls the controller's action. This provides two useful hooks for code execution in your application's controllers.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

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

Every ~87 days

Total

4

Last Release

3811d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0480dbebfc68025ad1b27364d96a03d4b891cf763a625a3cd1a473967c282167?d=identicon)[marklocker](/maintainers/marklocker)

---

Top Contributors

[![marklocker](https://avatars.githubusercontent.com/u/2170244?v=4)](https://github.com/marklocker "marklocker (19 commits)")

### Embed Badge

![Health badge](/badges/air-php-dispatcher/health.svg)

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

###  Alternatives

[ramsey/devtools

A Composer plugin to aid PHP library and application development.

7134.7k26](/packages/ramsey-devtools)[jimbojsb/workman

PHP process forking &amp; daemonizing library

608.8k](/packages/jimbojsb-workman)

PHPackages © 2026

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