designcise / bitframe-diactoros
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
用于作为中间件发射 HTTP 响应的 Zend Diactoros 包装类。
安装
有关安装和使用此中间件的说明,请参阅安装文档。
使用示例
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
]);
测试
要执行测试套件,您需要PHPUnit。
贡献
- 在https://github.com/designcise/bitframe-diactoros/issues上提交问题。
- 向https://github.com/designcise/bitframe-diactoros/pulls提交补丁。
文档
文档可在以下位置找到:
许可
请参阅许可文件以获取许可信息。