arnapou/stream

Library - Simple input and output interfaces.

Installs: 294

Dependents: 2

Suggesters: 0

Security: 0

Stars: 1

Forks: 0

pkg:composer/arnapou/stream

v1.4.1 2025-01-29 10:50 UTC

This package is auto-updated.

Last update: 2025-09-23 13:47:25 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;
}

Php versions

DateRef8.48.3
25/11/20241.4.x, main××
23/01/20241.0 - 1.3×