From aea32b936bcdf622f8f30440960382968dd03746 Mon Sep 17 00:00:00 2001 From: Rodolfo Berrios <20590102+rodber@users.noreply.github.com> Date: Mon, 8 Jan 2024 17:13:40 -0300 Subject: [PATCH] typos --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 5f399b6..9ba2e88 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,31 @@ Writer is available through [Packagist](https://packagist.org/packages/chevere/w composer require chevere/writer ``` +## Streams + +### Stream for + +Use function `streamFor` to create an stream. + +```php +use function Chevere\Writer\streamFor; + +$stream = streamFor( + stream: 'php://temp', + mode: 'r+' +); +``` + +### Stream temp + +Use function `streamTemp` to create a temp stream (rw+). + +```php +use function Chevere\Writer\streamTemp; + +$stream = streamTemp($content); +``` + ## StreamWriter Use `StreamWriter` to write strings to a stream.