Maps an HTTP request to a set of configuration variables
Alternatives To Routing
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Mux17,92910,8199,2546 months ago23December 12, 202133bsd-3-clauseGo
A powerful HTTP router and URL matcher for building Go web servers with 🦍
Uwebsockets15,45814 days ago14October 20, 201827apache-2.0C++
Simple, secure & standards compliant web server for the most demanding of applications
Httprouter15,2863,9271,69013 days ago12August 14, 202083bsd-3-clauseGo
A high performance HTTP request router that scales well
Chi14,2256641,85011 days ago75February 14, 202252mitGo
lightweight, idiomatic and composable router for building Go HTTP services
Routing7,41799,2591,1153 days ago531June 08, 2022mitPHP
Maps an HTTP request to a set of configuration variables
Uwebsockets.js6,09529,9283914 days ago73October 02, 20205apache-2.0C++
μWebSockets for Node.js back-ends :metal:
Skipper2,872234 hours ago1,004September 23, 2022235otherGo
An HTTP router and reverse proxy for service composition, including use cases like Kubernetes Ingress
Klein.php2,630362659 months ago9February 01, 201797mitPHP
A fast & flexible router
Go Web Framework Benchmark1,875
22 days ago1February 14, 202118apache-2.0Go
:zap: Go web framework benchmark
Next Connect1,3975a month ago33July 06, 202225mitTypeScript
The TypeScript-ready, minimal router and middleware layer for Next.js, Micro, Vercel, or Node.js http/http2
Alternatives To Routing
Select To Compare

Alternative Project Comparisons

Routing Component

The Routing component maps an HTTP request to a set of configuration variables.

Getting Started

$ composer require symfony/routing
use App\Controller\BlogController;
use Symfony\Component\Routing\Generator\UrlGenerator;
use Symfony\Component\Routing\Matcher\UrlMatcher;
use Symfony\Component\Routing\RequestContext;
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;

$route = new Route('/blog/{slug}', ['_controller' => BlogController::class]);
$routes = new RouteCollection();
$routes->add('blog_show', $route);

$context = new RequestContext();

// Routing can match routes with incoming requests
$matcher = new UrlMatcher($routes, $context);
$parameters = $matcher->match('/blog/lorem-ipsum');
// $parameters = [
//     '_controller' => 'App\Controller\BlogController',
//     'slug' => 'lorem-ipsum',
//     '_route' => 'blog_show'
// ]

// Routing can also generate URLs for a given route
$generator = new UrlGenerator($routes, $context);
$url = $generator->generate('blog_show', [
    'slug' => 'my-blog-post',
// $url = '/blog/my-blog-post'


Popular Http Projects
Popular Router Projects
Popular Networking Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Http Requests
Symfony Component