Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

designcise/bitframe-diactoros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.