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

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

Documentation

Documentation is available at:

License

Please see License File for licensing information.