phrity/net-stream

Socket stream classes implementing PSR-7 Stream and PSR-17 StreamFactory

Maintainers

πŸ‘ sirn-se

Package info

github.com/sirn-se/phrity-net-stream

Homepage

pkg:composer/phrity/net-stream

Statistics

Installs: 4 782 136

Dependents: 3

Suggesters: 0

Stars: 5

Open Issues: 0

2.4.0 2026-03-25 18:16 UTC

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT a0726a8dddf11a4cd3a9e45d17e145d78e948f43

streamclientserverSocketpsr-7psr-17stream factory

This package is auto-updated.

Last update: 2026-05-25 19:12:47 UTC


README

πŸ‘ Phrity Net Stream

πŸ‘ Build Status

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

Interfaces

Included classes

Versions

Version PHP
2.4 ^8.1 StreamInterface, StreamContainerInterface
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