[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8241":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":15,"starSnapshotCount":15,"syncStatus":32,"lastSyncTime":33,"discoverSource":34},8241,"routing","symfony\u002Frouting","symfony","Maps an HTTP request to a set of configuration variables","https:\u002F\u002Fsymfony.com\u002Frouting",null,"PHP",7621,93,25,0,1,3,62.72,"MIT License",false,"8.1",[23,24,25,5,7,26,27,28],"component","php","router","symfony-component","uri","url","2026-06-12 04:00:38","Routing Component\n=================\n\nThe Routing component maps an HTTP request to a set of configuration variables.\n\nGetting Started\n---------------\n\n```bash\ncomposer require symfony\u002Frouting\n```\n\n```php\nuse App\\Controller\\BlogController;\nuse Symfony\\Component\\Routing\\Generator\\UrlGenerator;\nuse Symfony\\Component\\Routing\\Matcher\\UrlMatcher;\nuse Symfony\\Component\\Routing\\RequestContext;\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteCollection;\n\n$route = new Route('\u002Fblog\u002F{slug}', ['_controller' => BlogController::class]);\n$routes = new RouteCollection();\n$routes->add('blog_show', $route);\n\n$context = new RequestContext();\n\n\u002F\u002F Routing can match routes with incoming requests\n$matcher = new UrlMatcher($routes, $context);\n$parameters = $matcher->match('\u002Fblog\u002Florem-ipsum');\n\u002F\u002F $parameters = [\n\u002F\u002F     '_controller' => 'App\\Controller\\BlogController',\n\u002F\u002F     'slug' => 'lorem-ipsum',\n\u002F\u002F     '_route' => 'blog_show'\n\u002F\u002F ]\n\n\u002F\u002F Routing can also generate URLs for a given route\n$generator = new UrlGenerator($routes, $context);\n$url = $generator->generate('blog_show', [\n    'slug' => 'my-blog-post',\n]);\n\u002F\u002F $url = '\u002Fblog\u002Fmy-blog-post'\n```\n\nSponsor\n-------\n\nHelp Symfony by [sponsoring][3] its development!\n\nResources\n---------\n\n * [Documentation](https:\u002F\u002Fsymfony.com\u002Fdoc\u002Fcurrent\u002Frouting.html)\n * [Contributing](https:\u002F\u002Fsymfony.com\u002Fdoc\u002Fcurrent\u002Fcontributing\u002Findex.html)\n * [Report issues](https:\u002F\u002Fgithub.com\u002Fsymfony\u002Fsymfony\u002Fissues) and\n   [send Pull Requests](https:\u002F\u002Fgithub.com\u002Fsymfony\u002Fsymfony\u002Fpulls)\n   in the [main Symfony repository](https:\u002F\u002Fgithub.com\u002Fsymfony\u002Fsymfony)\n\n[3]: https:\u002F\u002Fsymfony.com\u002Fsponsor\n","symfony\u002Frouting 是一个用于将 HTTP 请求映射到配置变量集的 PHP 组件。它提供了强大的路由功能，支持定义复杂的 URL 模式，并能根据请求匹配相应的控制器和参数。此外，该组件还能够生成符合规则的 URL，便于在应用中构建链接。基于 Symfony 框架开发，采用 MIT 许可证开放源代码，适合需要灵活高效处理 Web 应用路由逻辑的各种场景，如内容管理系统、企业级网站等。",2,"2026-06-11 03:16:57","top_language"]