air-php/routing 问题修复 & 功能扩展

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

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

air-php/routing

Composer 安装命令:

composer require air-php/routing

包简介

A routing library.

README 文档

README

Build Status Scrutinizer Code Quality

The routing library includes classes for handling web application routing.

Installation

Installation via Composer is recommended.

"require": {
    "air-php/routing": "dev-master"
}

Route

The Route object represents an application route. It includes:

  • A URI
  • The type of request the route handles (e.g. GET, POST etc.)
  • The target controller to instantiate
  • The target controller action to call

Router

The Router object is responsible for routing a request. It's configured with one or more Route objects.

The route() method takes a Request object (compatible with Air's request interface) and returns a ResolvedRoute. The method itself is abstract, allowing you to use routing logic of your choice.

ResolvedRequest

A ResolvedRequest object represents a request which has been resolved by a Router object.

It includes the original Request and Route objects, along with the URI parameters that were matched during routing.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-08-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固