designcise/bitframe-diactoros

此包已被弃用,不再维护。作者建议使用nyholm/psr7包代替。

BitFrame 微框架的 Zend Diactoros HTTP 响应发射器中间件

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

用于作为中间件发射 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

贡献

文档

文档可在以下位置找到:

许可

请参阅许可文件以获取许可信息。