承接 nigr/router 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nigr/router

Composer 安装命令:

composer require nigr/router

包简介

simple router

README 文档

README

- .htaccess(in root project folder)?

Install library:

    composer require nigr/router:@dev

Scheme URI

	[method] [protocol]://[host]/[path]?[queryParams]
	---
	[GET] [https]://[www.example.ru]/
	[GET] [https]://[www.example.ru]/[test]?[age=20]
	[GET] [https]://[www.example.ru]/[test/1]?[age=20]

Start router:

	$router = new Router();
	list($controller, $action, $params) = $router->run();
	...

Route structure:

$route = ("method" => "", "path" => "", "handler" => ["controller", "action"]);

return [
	'controller' => $controller, 
	'action' => $action, 
	'params' => ['get' => $queryParams, 'post' => $post, 'input' => $input]
];

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-09