designcise / bitframe-diactoros
Zend Diactoros HTTP response emitter middleware for BitFrame microframework
Installs: 84
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/designcise/bitframe-diactoros
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.