PHPackages                             clue/tar-react - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. clue/tar-react

ActiveLibrary[Queues &amp; Workers](/categories/queues)

clue/tar-react
==============

Streaming parser to extract tarballs with ReactPHP.

v0.2.0(6y ago)1211.5k↓31.8%5[3 issues](https://github.com/clue/reactphp-tar/issues)1MITPHPPHP &gt;=5.3CI passing

Since Jun 17Pushed 1y ago4 watchersCompare

[ Source](https://github.com/clue/reactphp-tar)[ Packagist](https://packagist.org/packages/clue/tar-react)[ Docs](https://github.com/clue/reactphp-tar)[ RSS](/packages/clue-tar-react/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (1)

clue/reactphp-tar
=================

[](#cluereactphp-tar)

[![CI status](https://github.com/clue/reactphp-tar/actions/workflows/ci.yml/badge.svg)](https://github.com/clue/reactphp-tar/actions)[![installs on Packagist](https://camo.githubusercontent.com/1ff8840c9333ba29d1d7141c19d03c142d280f4e8e949791dd6b08abf6ed37b3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c75652f7461722d72656163743f636f6c6f723d626c7565266c6162656c3d696e7374616c6c732532306f6e2532305061636b6167697374)](https://packagist.org/packages/clue/tar-react)

Streaming parser to extract tarballs with [ReactPHP](https://reactphp.org/).

The [TAR file format](https://en.wikipedia.org/wiki/Tar_%28computing%29) is a common archive format to store several files in a single archive file (commonly referred to as "tarball" with a `.tar` extension). This lightweight library provides an efficient implementation to extract tarballs in a streaming fashion, processing one chunk at a time in memory without having to rely on disk I/O.

**Table of Contents**

- [Quickstart example](#quickstart-example)
- [Install](#install)
- [Tests](#tests)
- [License](#license)
- [More](#more)

> Note: This project is in beta stage! Feel free to report any issues you encounter.

Quickstart example
------------------

[](#quickstart-example)

Once [installed](#install), you can use the following code to pipe a readable tar stream into the `TarDecoder` which emits "entry" events for each individual file:

```
