designcise / bitframe-diactoros

PSR-15 Zend Diactoros HTTP response emitter middleware for BitFrame microframework

Home Page:https://www.bitframephp.com/middleware/response-emitter/zend-diactoros

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BitFrame\Message\DiactorosResponseEmitter

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.

About

PSR-15 Zend Diactoros HTTP response emitter middleware for BitFrame microframework

https://www.bitframephp.com/middleware/response-emitter/zend-diactoros

License:MIT License


Languages

Language:PHP 100.0%