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
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
- Source Code: https://git.sr.ht/~ancarda/psr7-string-stream/
- Issue Tracker: https://todo.sr.ht/~ancarda/psr7-string-stream/
- Mailing List: https://lists.sr.ht/~ancarda/psr7-string-stream/
统计信息
- 总下载量: 84.11k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 6
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-08-25