定制 ancarda/psr7-string-stream 二次开发

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

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

ancarda/psr7-string-stream

最新稳定版本:1.4

Composer 安装命令:

composer require ancarda/psr7-string-stream

包简介

Minimal string based PSR-7 StreamInterface implementation

README 文档

README

Minimal string based PSR-7 StreamInterface implementation

License Latest Stable Version Total Downloads builds.sr.ht status

PSR-7 String Stream was born out of frustration working with PSR-7's StreamInterface. Most implementations typically use PHP Streams, which aren't the best to work with. I've run into bugs where harmless operations on Requests, such as withHeaders causes the underlying Body's destructor to be called, which closes the underlying stream. Since resources can't be cloned, this can cause the body to be destroyed.

This package, as the name implies, implements StreamInterface using strings which will survive clone+destroy.

If you're using this in production,

composer require ancarda/psr7-string-stream

If you're just using this in functional or unit tests, it can go in your require-dev section:

composer require --dev ancarda/psr7-string-stream

Useful Links

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-08-25