Download the PHP package ceus-media/router without Composer
On this page you can find all versions of the php package ceus-media/router. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package router
Router
PHP router for HTTP requests.
Branch for PHP 8 support.
Examples
Simplest: single JSON file
Route map as JSON file:
As you can see, the router works for CLI and HTTP environments.
Controller class:
Router setup:
Resolving a route:
You could execute the resolved route controller action like this:
Using multiple JSON files in a folder
Using a cache on top
Invalidate cache if routes file has changed:
Setup, related to cache invalidation request:
All versions of router with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.3
ext-memcache Version *
ceus-media/common Version 1.1.* | 1.1.x-dev
ceus-media/cache Version 0.7.* | 0.7.x-dev
ext-memcache Version *
ceus-media/common Version 1.1.* | 1.1.x-dev
ceus-media/cache Version 0.7.* | 0.7.x-dev
The package ceus-media/router contains the following files
Loading the files please wait ....