定制 jdwx/psr-http 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

jdwx/psr-http

最新稳定版本:v1.0.2

Composer 安装命令:

composer require jdwx/psr-http

包简介

A simple PSR-7/17 implementation.

README 文档

README

Module providing simple implementations of PHP HTTP PSR interfaces:

  • PSR-7: HTTP message interfaces
  • PSR-17: HTTP factory interfaces

Installation

You can require it directly with Composer:

composer require jdwx/psr-http

Or download the source from GitHub: https://github.com/jdwx/psr-http.git

Requirements

This module requires PHP 8.3 or later.

Usage

This module doesn't really do much on its own. It provides simple implementations of the PSR HTTP interfaces, which can be useful for testing or for providing a base implementation that can be extended by other modules.

The implementations provided for MessageInterface, RequestInterface, and ServerRequest interface are composed entirely of traits that implement each property individually so that you can grab anything you need for your own implementation.

Stability

This module is designed to stick as closely as possible to the PSR HTTP interfaces, so it should be fairly stable. Additional functionality may be somewhat more likely to evolve over time as more use cases are encountered.

History

This module was refactored out of larger modules in early 2025.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-01