Download the PHP package varion/driver-stream without Composer
On this page you can find all versions of the php package varion/driver-stream. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download varion/driver-stream
More information about varion/driver-stream
Files in varion/driver-stream
Download varion/driver-stream
More information about varion/driver-stream
Files in varion/driver-stream
Vendor varion
Package driver-stream
Short Description PHP stream driver for the Varion Transport API
License MIT
Package driver-stream
Short Description PHP stream driver for the Varion Transport API
License MIT
Please rate this library. Is it a good library?
Informations about the package driver-stream
varion/driver-stream
varion/driver-stream is a stream-based transport driver for the experimental Varion Transport API.
It is the first concrete driver implementation for varion/transport-contracts, built only with standard PHP stream/socket functions.
Scope
This package currently provides:
- outgoing TCP connections
- listening TCP servers
- read/write operations
- close operations
- local/remote address retrieval
This is a v0.1 reference implementation and uses blocking I/O by default.
Requirements
- PHP
^8.1 varion/transport-contracts^0.1
Supported options
StreamDriver::connect(string $uri, array $options = [])
timeout(int|float): connection timeout secondscontext(array): stream context optionsflags(int): flags forstream_socket_client()blocking(bool): appliesstream_set_blocking()after connection
StreamDriver::listen(string $uri, array $options = [])
context(array): stream context optionsflags(int): flags forstream_socket_server()backlog(int): mapped tocontext['socket']['backlog']blocking(bool): appliesstream_set_blocking()after listener creation
Usage
Server example:
Limitations
- blocking I/O oriented design
- no TLS abstraction layer beyond native stream context options
- no event loop integration
All versions of driver-stream with dependencies
PHP Build Version
Package Version
The package varion/driver-stream contains the following files
Loading the files please wait ...