You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://packagist.org/packages/clue/tar-react)
5
5
6
6
Streaming parser to extract tarballs with [ReactPHP](https://reactphp.org/).
@@ -31,9 +31,9 @@ tar stream into the `Decoder` which emits "entry" events for each individual fil
31
31
32
32
require __DIR__ . '/vendor/autoload.php';
33
33
34
-
$stream = new ReadableResourceStream(fopen('archive.tar', 'r'));
34
+
$stream = new React\Stream\ReadableResourceStream(fopen('archive.tar', 'r'));
35
35
36
-
$decoder = new Decoder();
36
+
$decoder = new Clue\React\Tar\Decoder();
37
37
38
38
$decoder->on('entry', function (array $header, React\Stream\ReadableStreamInterface $file) {
39
39
echo 'File ' . $header['filename'];
@@ -47,39 +47,39 @@ $decoder->on('entry', function (array $header, React\Stream\ReadableStreamInterf
47
47
$stream->pipe($decoder);
48
48
```
49
49
50
-
See also the [examples](examples).
50
+
See also the [examples](examples/).
51
51
52
52
## Install
53
53
54
-
The recommended way to install this library is [through Composer](https://getcomposer.org).
54
+
The recommended way to install this library is [through Composer](https://getcomposer.org/).
55
55
[New to Composer?](https://getcomposer.org/doc/00-intro.md)
56
56
57
57
While in beta, this project does not currently follow [SemVer](https://semver.org/).
58
58
This will install the latest supported version:
59
59
60
60
```bash
61
-
$ composer require clue/tar-react:^0.2
61
+
composer require clue/tar-react:^0.2
62
62
```
63
63
64
64
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
65
65
66
66
This project aims to run on any platform and thus does not require any PHP
67
67
extensions and supports running on legacy PHP 5.3 through current PHP 8+.
68
-
It's *highly recommended to use PHP 7+* for this project.
68
+
It's *highly recommended to use the latest supported PHP version* for this project.
69
69
70
70
## Tests
71
71
72
72
To run the test suite, you first need to clone this repo and then install all
0 commit comments