phrity/net-stream
最新稳定版本:2.3.3
Composer 安装命令:
composer require phrity/net-stream
包简介
Socket stream classes implementing PSR-7 Stream and PSR-17 StreamFactory
README 文档
README
Introduction
Package that provide implementations of PSR-7 StreamInterface and PSR-17 StreamFactoryInterface but also adds stream and socket related funcitonality. It is designed for use with socket connections.
Installation
Install with Composer;
composer require phrity/net-stream
Included classes
- Context - Stream context wrapper class
- SocketClient - Socket Client that creates SocketStream connections
- SocketServer - Socket Server that creates SocketStream connections
- SocketStream - Extending Stream for additional methods
- Stream - PSR-7 StreamFactory compatible Stream class
- StreamCollection - Collection of connections
- StreamException - Exception for stream related errors
- StreamFactory - PSR-17 StreamFactoryInterface compatible factory
Versions
| Version | PHP | |
|---|---|---|
2.3 |
^8.1 |
Float timeout, hasContents method, Listeners |
2.2 |
^8.1 |
Improved context handling |
2.1 |
^8.0 |
Set context on server |
2.0 |
^8.0 |
Modernization |
1.3 |
^7.4|^8.0 |
Closing read and write separately |
1.2 |
^7.4|^8.0 |
Socket client |
1.1 |
^7.4|^8.0 |
Stream collection |
1.0 |
^7.4|^8.0 |
Initial version |
统计信息
- 总下载量: 3.43M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 2
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04
