tecnovix/streams

A set of generic stream wrappers

Maintainers

Package info

github.com/adenisdeveloper/streams

Issues

pkg:composer/tecnovix/streams

Statistics

Installs: 230

Dependents: 1

Suggesters: 0

Stars: 0

dev-main 2022-11-30 19:14 UTC

This package is not auto-updated.

Last update: 2026-03-06 08:24:14 UTC


README

# Streams # [![CI](https://github.com/binfotech/Streams/actions/workflows/ci.yaml/badge.svg)](https://github.com/binfotech/Streams/actions/workflows/ci.yaml) Generic stream wrappers for php. ## CallBackWrapper ## A `CallBackWrapper` can be used to register callbacks on read, write and closing of the stream, it wraps an existing stream and can thus be used for any stream in php The callbacks are passed in the stream context along with the source stream and can be any valid [php callable](http://php.net/manual/en/language.types.callable.php) ### Example ### ```php