oladesoftware/router 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

oladesoftware/router

最新稳定版本:v1.1.4

Composer 安装命令:

composer require oladesoftware/router

包简介

A lightweight router written in PHP

README 文档

README

Latest Version License

A simple lightweight router implementation for handling HTTP routes written in PHP. This class allows you to define routes, group them, add middleware, and handle requests based on defined routes.

Table of Contents

Features

  • Singleton Pattern: Ensures a single instance of the router.
  • Route Definition: Add individual routes with HTTP methods, URI paths, and targets (controllers or closures).
  • Route Grouping: Group multiple routes under a common base path.
  • Middleware Support: Assign middleware to routes for pre-processing.
  • Named Routes: Name your routes for easier route generation.
  • Dynamic Route Matching: Match incoming requests to defined routes and extract parameters.
  • Route Execution: Execute the target action of matched routes.

Installation

  • Via Composer (Recommended):
composer require oladesoftware/router
  • Manual Installation:

Download the router class file and include it in your project.

Usage

For detailed usage instructions, please refer to the Usage Documentation.

License

This project is licensed under the MIT License. See the License file for details.

Contributing

Contributions are welcome! Feel free to submit issues or pull requests.

Support

For support, please open an issue on the GitHub repository.

Contributors

Author

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-12-06