Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
rodber committed Jan 8, 2024
1 parent dd4ae88 commit aea32b9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit aea32b9

Please sign in to comment.