轻量高效的PHP路由器:php-srouter

php-srouter:轻量级PHP路由器

php-srouter是一个高效简洁的PHP路由库,它拥有以下特性:

  • 极速路由: 无论路由数量多少,都能保持快速的查找速度。
  • 全面支持RESTful API: 支持GET、POST、PUT、DELETE、HEAD和OPTIONS等HTTP请求方法。
  • 事件驱动: 支持foundnotFound等事件,方便进行日志记录等操作。
  • 自动匹配控制器: 类似Yii框架,自动将路由匹配到对应的控制器。

php-srouter以其轻量和高效的特点,成为构建PHP应用的理想路由解决方案。

zip
php-srouter.zip 预估大小:54个文件
file
composer.json 639B
folder
example 文件夹
folder
config 文件夹
file
nginx.conf 74B
file
.htaccess 148B
file
benchmark.php 4KB
file
object.php 3KB
file
some-routes.php 4KB
folder
Controllers 文件夹
file
RestController.php 774B
file
DemoController.php 635B
folder
Admin 文件夹
file
UserController.php 479B
file
HomeController.php 562B
folder
tests 文件夹
file
serialize.php 787B
file
preg_match_all.php 2KB
file
parse_param_route.php 482B
file
preg_split.php 2KB
file
quick_find.php 4KB
file
swoole_svr.php 2KB
file
static.php 2KB
file
pre-match.php 3KB
file
cached.php 3KB
folder
cached 文件夹
file
routes-cache.php 8KB
file
bench-routes-cache.php 178KB
folder
docs 文件夹
file
router.md 10KB
file
benchmark-old.md 2KB
file
TODO.md 259B
file
benchmark-170706.md 3KB
file
dispatcher.md 4KB
file
benchmark.md 3KB
folder
test 文件夹
file
boot.php 3KB
file
AbstractRouterTest.php 3KB
file
ServerRouterTest.php 1KB
file
PreMatchRouterTest.php 1KB
file
DispatcherTest.php 275B
file
ORouterTest.php 4KB
file
SRouterTest.php 2KB
file
RouterManagerTest.php 2KB
file
_config.yml 25B
file
read.t 6B
file
LICENSE 1KB
folder
src 文件夹
folder
Dispatcher 文件夹
file
Dispatcher.php 4KB
file
SimpleDispatcher.php 14KB
file
DispatcherInterface.php 1KB
file
functions.php 1KB
file
SRouter.php 2KB
file
PreMatchRouter.php 6KB
file
RouterManager.php 7KB
file
CachedRouter.php 5KB
file
ServerRouter.php 10KB
folder
Base 文件夹
file
RouterInterface.php 3KB
file
AbstractRouter.php 22KB
file
ORouter.php 12KB
file
.gitignore 127B
file
README_en.md 9KB
file
phpunit.xml.dist 663B
file
README.md 17KB
zip 文件大小:83.81KB