Download the PHP package apitte/middlewares without Composer
On this page you can find all versions of the php package apitte/middlewares. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download apitte/middlewares
More information about apitte/middlewares
Files in apitte/middlewares
Package middlewares
Short Description Middlewares support for Apitte stack
License MIT
Homepage https://github.com/apitte/middlewares
Informations about the package middlewares
Website 🚀 contributte.org | Contact 👨🏻💻 f3l1x.io | Twitter 🐦 @contributte
Disclaimer
| :warning: | This project is no longer being maintained. Please use contributte/apitte. |
|---|
| Composer | apitte/middlewares |
|---|---|
| Version | |
| PHP | |
| License |
Usage
To install the latest version of apitte/middlewares use Composer.
Documentation
Middlewares for Apitte.
Transform and validate request or early return response before it is handled by dispatcher.
Setup
First of all, setup core and contributte/middlewares packages.
Install and register middlewares plugin
In index.php replace Apitte\Core\Application\IApplication with Contributte\Middlewares\Application\IApplication.
Configuration
TracyMiddleware (with priority 100) and AutoBasePathMiddleware (with priority 200) are registered by default, but you could disable them if you want.
Apitte\Middlewares\ApiMiddleware which run whole Apitte application is registered with priority 500. Make sure there is no middleware with higher priority.
Middlewares
If you want to add another middleware, just register a class with appropriate tags.
See contributte/middlewares documentation for more info and useful middlewares
Versions
| State | Version | Branch | Nette | PHP |
|---|---|---|---|---|
| stable | ^0.8 |
master |
3.0+ | >=7.3 |
| stable | ^0.5 |
master |
2.4 | >=7.1 |
Development
This package was maintained by these authors.
Consider to support contributte development team. Also thank you for using this package.