Registry / web-framework / symfony-routing

symfony-routing

JSON →
library8.1.0phppackagistunverified

Maps an HTTP request to a set of configuration variables

composer require symfony/routing
INSTALL
IMPORT
SIG · SYMFONY-ROUTING
S
symfony-routing
web-frameworkphpv8.1.0
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 Symfony\Component\Routing\Router;

Match a URL path to a route and extract parameters.

use Symfony\Component\Routing\Router; use Symfony\Component\Routing\RouteCollection; use Symfony\Component\Routing\Route; $routes = new RouteCollection(); $routes->add('hello', new Route('/hello/{name}', ['name' => 'World'])); $router = new Router(new \Symfony\Component\Routing\Matcher\UrlMatcher($routes, new \Symfony\Component\Routing\RequestContext())); $parameters = $router->match('/hello/John'); // ['name' => 'John', '_route' => 'hello']
Debug
Known issues

No known issues recorded.

Upgrade
Version history
8.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
symfony-routing — pip install symfony-routing · libregistry