sugatasei/bredala-router

PHP object-oriented layer for the HTTP specification

Installs: 19

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/sugatasei/bredala-router

3.0.0 2024-08-14 15:34 UTC

This package is auto-updated.

Last update: 2025-10-14 19:44:26 UTC


README

Fast request router for PHP.

use Bredala\Router\Router;

$router = new Router();
$router->add('GET', '/', function() {
    echo 'home';
});

$router->add('GET', '/hello/([^/]+)', function(string $world) {
    echo "Hello {$world}!";
});