Download the PHP package cxx/tp5-middleware without Composer
On this page you can find all versions of the php package cxx/tp5-middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download cxx/tp5-middleware
More information about cxx/tp5-middleware
Files in cxx/tp5-middleware
Download cxx/tp5-middleware
More information about cxx/tp5-middleware
Files in cxx/tp5-middleware
Vendor cxx
Package tp5-middleware
Short Description tp5-middleware,中间件,middleware,thinkphp5
License MIT
Package tp5-middleware
Short Description tp5-middleware,中间件,middleware,thinkphp5
License MIT
Please rate this library. Is it a good library?
Informations about the package tp5-middleware
基于tp5版本的中间件
主要特性
- 代码无侵入性
- 更细粒度的操作
安装使用
composer require cxx/tp5-middleware
-
行为绑定,在
application\tags.php
中添加 -
创建中间件(三个方法都是可选的,类写在哪里都无所谓,只要能被加载)
- 命令行
在
applocation\command.php
添加使用命令行直接创建
php think make:middleware Test
,会生成application/middleware/Test.php
文件- 手动创建
- 使用(创建
application\extra\middleware.php
文件)
控制器中间件的另一种定义方式
调用顺序
前置方法->后置方法
global -> module -> controller -> (核心代码) -> controller -> module -> global
响应结束方法
global -> module -> controller
All versions of tp5-middleware with dependencies
PHP Build Version
Package Version
No informations.
The package cxx/tp5-middleware contains the following files
Loading the files please wait ....