Skip to content

Commit 1eccb58

Browse files
authored
Merge pull request #10 from clue-labs/name
Update project homepage
2 parents 4a2feb7 + 77cb59f commit 1eccb58

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
# clue/tar-react [![Build Status](https://travis-ci.org/clue/php-tar-react.svg?branch=master)](https://travis-ci.org/clue/php-tar-react)
1+
# clue/reactphp-tar [![Build Status](https://travis-ci.org/clue/reactphp-tar.svg?branch=master)](https://travis-ci.org/clue/reactphp-tar)
22

3-
Async, streaming parser for the [TAR file format](https://en.wikipedia.org/wiki/Tar_%28computing%29) (Tape ARchive),
4-
built on top of [React PHP](http://reactphp.org/).
3+
Streaming parser to extract tarballs with [ReactPHP](https://reactphp.org/).
54

6-
Implements UStar (Uniform Standard Tape ARchive) format, introduced by the POSIX IEEE P1003.1
5+
The [TAR file format](https://en.wikipedia.org/wiki/Tar_%28computing%29) is a
6+
common archive format to store several files in a single archive file (commonly
7+
referred to as "tarball" with a `.tar` extension). This lightweight library
8+
provides an efficient implementation to extract tarballs in a streaming fashion,
9+
processing one chunk at a time in memory without having to rely on disk I/O.
710

811
**Table of Contents**
912

@@ -44,8 +47,8 @@ See also the [examples](examples).
4447

4548
## Install
4649

47-
The recommended way to install this library is [through composer](https://getcomposer.org).
48-
[New to composer?](https://getcomposer.org/doc/00-intro.md)
50+
The recommended way to install this library is [through Composer](https://getcomposer.org).
51+
[New to Composer?](https://getcomposer.org/doc/00-intro.md)
4952

5053
```JSON
5154
{
@@ -84,5 +87,5 @@ MIT
8487
the underlying [react/stream](https://github.com/reactphp/stream) component.
8588

8689
* If you want to process compressed tarballs (`.tar.gz` and `.tgz` file extension), you may
87-
want to use [clue/zlib-react](https://github.com/clue/php-zlib-react) on the compressed
90+
want to use [clue/reactphp-zlib](https://github.com/clue/reactphp-zlib) on the compressed
8891
input stream before passing the decompressed stream to the tar decoder.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "clue/tar-react",
3-
"description": "Async, streaming parser for the TAR file format (Tape ARchive), built on top of React PHP",
4-
"keywords": ["tar", "archive", "parser", "decoder", "extractor", "unpacker", "ReactPHP", "async"],
3+
"description": "Streaming parser to extract tarballs with ReactPHP.",
4+
"keywords": ["tar", "archive", "tarball", "untar", "parser", "decoder", "extract", "unpack", "ReactPHP", "async"],
55
"homepage": "https://github.com/clue/php-tar-react",
66
"license": "MIT",
77
"authors": [

src/Decoder.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
use Exception;
99

1010
/**
11+
* Decodes a TAR stream and emits "entry" events for each individual file in the archive.
12+
*
13+
* At the moment, this class implements the the `UStar` (Uniform Standard Tape ARchive) format,
14+
* introduced by POSIX IEEE P1003.1. In the future, it should support more of
15+
* the less common alternative formats.
16+
*
1117
* @event entry(array $header, ReadableStream $stream, Decoder $thisDecoder)
1218
* @event error(Exception $e, Decoder $thisDecoder)
1319
* @event close()

0 commit comments

Comments
 (0)