Dispatch
Micro-routing library for PHP that maps HTTP requests to handler functions.
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 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.
Identity
- Status
- Active
- Maintainer
- noodlehaus3
- Maintained by
- Individual3
Rendering and deploy
- Install with
- dispatch.php as a standalone PHP file4
Releases
Adoption
Sources
- 2026-10-20: links, Written in
github.com/noodlehaus/dispatch - 2026-10-20: links, License, License model
github.com/noodlehaus/dispatch/blob/master/README.markdown - 2026-10-20: Maintainer, Maintained by, Categories, Runtime, Minimum runtime, Current major version, Last release
repo.packagist.org/p2/noodlehaus/dispatch.json - 2026-10-20: Install with
raw.githubusercontent.com/noodlehaus/dispatch/master/README.markdown - 2026-10-20: Packagist downloads
packagist.org/packages/noodlehaus/dispatch.json - 2026-10-20: GitHub stars
api.github.com/repos/noodlehaus/dispatch - 2026-10-25: Dependent repositories
packages.ecosyste.ms/api/v1/registries/packagist.org/packages/noodlehaus%2Fdispatch - 2026-10-25: Packagist downloads a month
packagist.org/packages/noodlehaus/dispatch/stats.json