Download the PHP package webiik/middleware without Composer
On this page you can find all versions of the php package webiik/middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download webiik/middleware
More information about webiik/middleware
Files in webiik/middleware
Download webiik/middleware
More information about webiik/middleware
Files in webiik/middleware
Vendor webiik
Package middleware
Short Description The Middleware is middleware launcher that allows automatic constructor DI and sending custom data among middleware.
License MIT
Homepage https://www.webiik.com
Package middleware
Short Description The Middleware is middleware launcher that allows automatic constructor DI and sending custom data among middleware.
License MIT
Homepage https://www.webiik.com
Keywords middleware
Please rate this library. Is it a good library?
Informations about the package middleware
Middleware
The Middleware is middleware launcher that allows automatic constructor DI and sending custom data among middleware.
Installation
Example
Writing Middleware
Every middleware has to be a class with at least one public method with the following parameters \Webiik\Data\Data $data, callable $next. Every class can contain more methods with the mentioned parameters.
You can also use constructor DI to inject services from container to middleware. Read more about DI and container.
Adding
add
add() ads middleware to queue.
Parameters:
- controller string representation of controller and method to be initiated e.g. controllerName:methodName
- data a key-value array of data to be injected during the middleware initiation
Launch
run
run() runs all middleware in queue.
Resources
All versions of middleware with dependencies
PHP Build Version
Package Version
The package webiik/middleware contains the following files
Loading the files please wait ....