Registry / web-framework / coffeecode-router

coffeecode-router

JSON →
library2.0.2phppackagistunverified

A classic CoffeeCode Router is easy, fast and extremely uncomplicated. Create and manage your routes in minutes!

composer require coffeecode/router
INSTALL
IMPORT
SIG · COFFEECODE-ROUTER
C
coffeecode-router
web-frameworkphpv2.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Router
use CoffeeCode\Router\Router;

Create a simple GET route and dispatch the request.

use CoffeeCode\Router\Router; $router = new Router("https://example.com"); $router->get("/", function() { echo "Hello World"; }); $router->dispatch();
Debug
Known issues
breakingVersion 2.x uses a different API than 1.x; routes are defined differently.
fix
Refer to the documentation for migration from 1.x to 2.x.
affects: >=2.0.0
Upgrade
Version history
2.0.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
OpenAI (training)
1
Resources
coffeecode-router — pip install coffeecode-router · libregistry