Download the PHP package psg/psr-102-implementation without Composer
On this page you can find all versions of the php package psg/psr-102-implementation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download psg/psr-102-implementation
More information about psg/psr-102-implementation
Files in psg/psr-102-implementation
Package psr-102-implementation
Short Description App Standardization Prototype
License MIT
Homepage https://github.com/php-sg/psr-100
Informations about the package psr-102-implementation
PSR 102 Implementation
The intent of this implementation is to give a well documented prototype of how LayeredApp can be implemented. The complexity of integrating normal middleware with frontware and backware has, to my knowledge, prevented this from ever being done, which makes the example all the more necessary.
Notes
In my implementation, I provide the callable with the parameters ($request, $response, $app). It is, however, expectable that frameworks will want to:
- inject parameters as necessary into the core call
- inject parameters into the __construct if the core is an instantiable As such, the parameters are left up to the framework.
Possible Improvements
- just in time middleware construction with dependency injection to __construct
- add exception if a ware is added after it's stage has passed
Use
To see all the layers, which are set to echo to announce themselves and each add a header
To see the ability to exit at certain phases
All versions of psr-102-implementation with dependencies
psg/psr-100 Version ^0.2.0
psg/psr-100-implementation Version ^0.2.0
psg/psr-101 Version ^0.4.0
psg/psr-102 Version ^0.1.0