# Dispatch

Micro-routing library for PHP that maps HTTP requests to handler functions.


Source: https://findsoftware.frbit.cloud/dispatch/
Last reviewed: 2026-10-20
Updated: 2026-10-25
Listed since: 2026-10-20

## Record

### Links

- repository: https://github.com/noodlehaus/dispatch
- docs: https://github.com/noodlehaus/dispatch/blob/master/README.markdown

### Identity

- status: active
- maintainer: noodlehaus
- maintainerType: individual
- parent: unknown
- firstRelease: unknown
- hqCountry: unknown

### Kind

- category: framework, library
- hosting: php
- language: php
- runtime: php
- runtimeMin: php 8.0
- basedOn: unknown

### Content

- contentStore: unknown
- databases: unknown
- adminUi: unknown
- headlessApi: unknown
- templating: unknown
- i18n: unknown

### Rendering and deploy

- runsAs: unknown
- renderingModes: unknown
- installMethod: dispatch.php as a standalone PHP file

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 11
- latestReleaseDate: 2023-04-11

### Adoption

- githubStargazers: 537
- packagistDownloads: 1538
- npmWeeklyDownloads: not applicable
- contributors: unknown
- pluginCount: unknown
- packagistMonthlyDownloads: 42
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 2
- dependentPackages: unknown

### Sources

- urls: https://github.com/noodlehaus/dispatch (read 2026-10-20)
- urls: https://github.com/noodlehaus/dispatch/blob/master/README.markdown (read 2026-10-20)
- maintainer: https://repo.packagist.org/p2/noodlehaus/dispatch.json (read 2026-10-20)
- maintainerType: https://repo.packagist.org/p2/noodlehaus/dispatch.json (read 2026-10-20)
- category: https://repo.packagist.org/p2/noodlehaus/dispatch.json (read 2026-10-20)
- language: https://github.com/noodlehaus/dispatch (read 2026-10-20)
- runtime: https://repo.packagist.org/p2/noodlehaus/dispatch.json (read 2026-10-20)
- runtimeMin: https://repo.packagist.org/p2/noodlehaus/dispatch.json (read 2026-10-20)
- installMethod: https://raw.githubusercontent.com/noodlehaus/dispatch/master/README.markdown (read 2026-10-20)
- license: https://github.com/noodlehaus/dispatch/blob/master/README.markdown (read 2026-10-20)
- licenseModel: https://github.com/noodlehaus/dispatch/blob/master/README.markdown (read 2026-10-20)
- currentMajor: https://repo.packagist.org/p2/noodlehaus/dispatch.json (read 2026-10-20)
- latestReleaseDate: https://repo.packagist.org/p2/noodlehaus/dispatch.json (read 2026-10-20)
- packagistDownloads: https://packagist.org/packages/noodlehaus/dispatch.json (read 2026-10-20)
- packagistDownloads: https://packagist.org/packages/noodlehaus/dispatch.json (read 2026-10-20)
- githubStargazers: https://api.github.com/repos/noodlehaus/dispatch (read 2026-10-20)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/noodlehaus%2Fdispatch (read 2026-10-25)
- packagistMonthlyDownloads: https://packagist.org/packages/noodlehaus/dispatch/stats.json (read 2026-10-25)

## Notes

Dispatch is a PHP library of global functions for routing HTTP requests. A script registers handlers with `route()` for an HTTP method and path, adds middleware with `apply()`, and calls `dispatch()` to run the matching handler. The [README](https://github.com/noodlehaus/dispatch/blob/master/README.markdown) also lists helpers for named route parameters, responses, redirects, values shared within a request, and PHP templates through `phtml()`.

The library is a single `dispatch.php` file that the application requires.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
