abollinger/router
最新稳定版本:v1.2.9
Composer 安装命令:
composer require abollinger/router
包简介
A lightweight router for every PHP app.
README 文档
README
This router is used in the partez framework (see on Packagist). It provides a set of functions to help you create a smart router for you web app or API.
Getting started
Installation
You can install the router in your project using composer:
composer require abollinger/router
Usage
Here a the functions provided:
Functions in the Classes tree
- Abollinger/
getRoutesFromYaml
Retrieves routes from YAML files present in the specified directory.
@param string $dir: The directory containing YAML route files@return array: An array of parsed routes from YAML files
getRoutesFromDirectory
Retrieves routes from PHP controller files within the specified directory.
@param string $directory: The directory path containing PHP controller files.@return array: An array containing extracted routes with their path, name, and controller information.
Classes tree
Abollinger/
└── Router::
├── getRoutesFromYaml($dir)
└── getRoutesFromDirectory($dir)
Licence
This library is licensed under the MIT License. For full license details, see the LICENCE file distributed with this source code.
Author
Antoine Bollinger Email: abollinger@partez.net
For contributions, issues, or feedback, feel free to contact the author or open a GitHub issue.
统计信息
- 总下载量: 238
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-04-09