Download the PHP package phrity/net-stream without Composer
On this page you can find all versions of the php package phrity/net-stream. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phrity/net-stream
More information about phrity/net-stream
Files in phrity/net-stream
Package net-stream
Short Description Socket stream classes implementing PSR-7 Stream and PSR-17 StreamFactory
License MIT
Homepage https://phrity.sirn.se/net-stream
Informations about the package net-stream
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;
Stream class
The Phrity\Net\Stream
class is fully compatible with PSR-7 StreamInterface,
implementing specified methods but no extras. Can be used anywhere where PSR-7 StreamInterface compability is expected.
SocketStream class
The Phrity\Net\SocketStream
class extends Phrity\Net\Stream
and adds extra methods usable on a socket stream.
SocketClient class
The Phrity\Net\SocketClient
class enables a client for remote socket.
SocketServer class
The Phrity\Net\SocketServer
class enables a server on local socket.
StreamCollection class
The Phrity\Net\StreamCollection
class to handle zero to many connections.
StreamFactory class
The Phrity\Net\StreamFactory
class is fully compatible with PSR-17 StreamFactoryInterface,
implementing specified methods and some extras. Can be used anywhere where PSR-17 StreamFactoryInterface compability is expected.
StreamException class
The Phrity\Net\StreamException
is thrown when a stream related error occurs.
Versions
Version | PHP | |
---|---|---|
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 |
All versions of net-stream with dependencies
phrity/util-errorhandler Version ^1.1
psr/http-factory Version ^1.0
psr/http-message Version ^1.1 | ^2.0