Download the PHP package noodlehaus/dispatch without Composer
On this page you can find all versions of the php package noodlehaus/dispatch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download noodlehaus/dispatch
More information about noodlehaus/dispatch
Files in noodlehaus/dispatch
Download noodlehaus/dispatch
More information about noodlehaus/dispatch
Files in noodlehaus/dispatch
Vendor noodlehaus
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 noodlehaus/dispatch contains the following files
Loading the files please wait ....