designcise / bitframe-diactoros
This package is abandoned and no longer maintained.
The author suggests using the nyholm/psr7 package instead.
Zend Diactoros HTTP response emitter middleware for BitFrame microframework
1.0.0
2018-05-18 04:50 UTC
Requires
- php: >=7.1.0
- designcise/bitframe: ^1.0.0
- psr/http-server-middleware: ~1.0
- zendframework/zend-diactoros: ~1.5
Requires (Dev)
- phpunit/phpunit: ^6.4
This package is not auto-updated.
Last update: 2020-06-06 19:44:42 UTC
README
Zend Diactoros wrapper class to emit http response as a middleware.
Installation
See installation docs for instructions on installing and using this middleware.
Usage Example
use \BitFrame\Message\DiactorosResponseEmitter;
require 'vendor/autoload.php';
$app = new \BitFrame\Application;
$app->run([
/* The response emitter must be the first middleware so that it
* emits the response from all the middleware that follow. */
DiactorosResponseEmitter::class
]);
Tests
To execute the test suite, you will need PHPUnit.
Contributing
- File issues at https://github.com/designcise/bitframe-diactoros/issues
- Issue patches to https://github.com/designcise/bitframe-diactoros/pulls
Documentation
Documentation is available at:
License
Please see License File for licensing information.