arnapou/stream

Library - Simple input and output interfaces.

v1.3 2024-04-06 23:52 UTC

This package is auto-updated.

Last update: 2024-04-18 20:16:44 UTC


README

pipeline coverage

This library allow you to wrap streams with Input or Output basic interfaces.

Installation

composer require arnapou/stream

packagist 👉️ arnapou/stream

Input

The stream you "read".

namespace Arnapou\Stream\Input;

interface Input
{
    public function open(): void;
    public function read(): string;
    public function close(): void;
}

Output

The stream you "write".

namespace Arnapou\Stream\Output;

interface Output
{
    public function write(string $data): void;
}

Changelog versions

StartTag, BranchPhp
23/01/20241.x, main8.3