tomrf/http-emitter 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tomrf/http-emitter

Composer 安装命令:

composer require tomrf/http-emitter

包简介

PSR-7 response emitter

README 文档

README

PHP Version Require Latest Stable Version License

Simple PSR-7 response emitter with sensible CLI SAPI output

📔 Go to documentation

Installation

Installation via composer:

composer require tomrf/http-emitter

Usage

$httpEmitter = new HttpEmitter();
$httpEmitter->emit($response); // PSR-7 response object

Testing

composer test

License

This project is released under the MIT License (MIT). See LICENSE for more information.

Documentation

📂 Tomrf\HttpEmitter\HttpEmitter::class

PSR-7 message response emitter.

emit()

Emits the response using SapiEmitter or SapiCliEmitter based on current PHP SAPI.

public function emit(
    Psr\Http\Message\ResponseInterface $response
): void

📂 Tomrf\HttpEmitter\Sapi\SapiCliEmitter::class

PSR-7 message response emitter for SAPI cli.

emit()

Emits the response to terminal.

public function emit(
    Psr\Http\Message\ResponseInterface $response
): void

📂 Tomrf\HttpEmitter\Sapi\SapiEmitter::class

Generic PSR-7 message response emitter for SAPI.

emit()

Emits the response to standard output.

public function emit(
    Psr\Http\Message\ResponseInterface $response
): void

Generated 2022-06-15T23:05:29+02:00 using 📚tomrf/readme-gen

统计信息

  • 总下载量: 38
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-05-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固