- Summary
The purpose of this PSR is to provide an interface that defines the formal method signature of a PSR-7 compliant HTTP middleware component.
- Why Bother?
Agreeing on a formal middleware interface eliminates several problems and provides a number of benefits:
- Provides a formal standard for middleware developers to commit to.
- Eliminates duplication of identical (or near-identical) interfaces defined by various frameworks.
- Avoids minor discrepancies in method signatures.
- Enables any middleware component to run under any middleware framework.
The latter is arguably a moot point, as most PSR-7 compliant middleware already complies with the near-identical method signature expected by most major frameworks - however, compliance with a formal PSR helps middleware and framework vendors to formally certify compliance.
- Scope
- Provide a Composer package with a formal interface definition.
- Comply with the already widely-adopted informal standard.
- TODO
- Approaches
The formal interface is based on a widely-adopted informal standard used by several existing projects.
Examples of existing middleware components:
Examples of existing frameworks:
The over-arching goal and the main advantage of this approach, is hopefully short-term, widespread, easily-implemented adoption of the formal interface by projects that consume or provide middleware components.
- People
- Rasmus Schultz, rasmus@mindplay.dk
- TODO
- TODO
- Votes
- **Entrance Vote: ** http://groups.google.com...
- Acceptance Vote: http://groups.google.com...
- Relevant Links
Relevant links in chronological order:
See section 4.1 for links to relevant middleware components and frameworks.
- Errata
None.