Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Mux | 17,929 | 10,819 | 9,254 | 6 months ago | 23 | December 12, 2021 | 33 | bsd-3-clause | Go | |
A powerful HTTP router and URL matcher for building Go web servers with 🦍 | ||||||||||
Uwebsockets | 15,458 | 1 | 4 days ago | 14 | October 20, 2018 | 27 | apache-2.0 | C++ | ||
Simple, secure & standards compliant web server for the most demanding of applications | ||||||||||
Httprouter | 15,286 | 3,927 | 1,690 | 13 days ago | 12 | August 14, 2020 | 83 | bsd-3-clause | Go | |
A high performance HTTP request router that scales well | ||||||||||
Chi | 14,225 | 664 | 1,850 | 11 days ago | 75 | February 14, 2022 | 52 | mit | Go | |
lightweight, idiomatic and composable router for building Go HTTP services | ||||||||||
Routing | 7,417 | 99,259 | 1,115 | 3 days ago | 531 | June 08, 2022 | mit | PHP | ||
Maps an HTTP request to a set of configuration variables | ||||||||||
Uwebsockets.js | 6,095 | 29,928 | 391 | 4 days ago | 73 | October 02, 2020 | 5 | apache-2.0 | C++ | |
μWebSockets for Node.js back-ends :metal: | ||||||||||
Skipper | 2,872 | 2 | 3 | 4 hours ago | 1,004 | September 23, 2022 | 235 | other | Go | |
An HTTP router and reverse proxy for service composition, including use cases like Kubernetes Ingress | ||||||||||
Klein.php | 2,630 | 362 | 65 | 9 months ago | 9 | February 01, 2017 | 97 | mit | PHP | |
A fast & flexible router | ||||||||||
Go Web Framework Benchmark | 1,875 | 22 days ago | 1 | February 14, 2021 | 18 | apache-2.0 | Go | |||
:zap: Go web framework benchmark | ||||||||||
Next Connect | 1,397 | 5 | a month ago | 33 | July 06, 2022 | 25 | mit | TypeScript | ||
The TypeScript-ready, minimal router and middleware layer for Next.js, Micro, Vercel, or Node.js http/http2 |
The Routing component maps an HTTP request to a set of configuration variables.
$ 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'