Download the PHP package dispatch/dispatch without Composer
On this page you can find all versions of the php package dispatch/dispatch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dispatch/dispatch
More information about dispatch/dispatch
Files in dispatch/dispatch
Download dispatch/dispatch
More information about dispatch/dispatch
Files in dispatch/dispatch
Vendor dispatch
Package dispatch
Short Description a micro-routing library for PHP
License MIT
Homepage http://github.com/noodlehaus/dispatch
Package dispatch
Short Description a micro-routing library for PHP
License MIT
Homepage http://github.com/noodlehaus/dispatch
Please rate this library. Is it a good library?
Informations about the package dispatch
dispatch
- a tiny library for quick and easy PHP apps
- requires at least PHP 8.x
functions
Below is the list of functions provided by dispatch
.
Here's a sample of how you'd usually use them in an app.
Once dispatch(...)
is called, it will try to match the current request to any
of the mapped routes via route(...)
. When it finds a match, it will then do the
following sequence:
- Execute all named parameter bindings from
bind(...)
- Execute all global middleware and matching middleware from
apply(...)
- Invoke the handler for the matching route.
Because of this sequence, it means that any transformations done by bind(...)
mappings will have already updated the values inside the $params
array that's
forwarded down the execution chain.
license
MIT
All versions of dispatch with dependencies
PHP Build Version
Package Version
Requires
php Version
>= 8.0.0
The package dispatch/dispatch contains the following files
Loading the files please wait ....