PHPackages                             popphp/pop-archive - 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. popphp/pop-archive

AbandonedLibrary

popphp/pop-archive
==================

Pop Archive Component for PHP Framework

2.1.1p1(9y ago)2914New BSDPHPPHP &gt;=5.4.0

Since Jul 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/popphp/pop-archive)[ Packagist](https://packagist.org/packages/popphp/pop-archive)[ Docs](http://www.popphp.org/)[ RSS](/packages/popphp-pop-archive/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (7)Used By (0)

pop-archive
===========

[](#pop-archive)

END OF LIFE
-----------

[](#end-of-life)

The `pop-archive` component v2.1.1 is now end-of-life and will no longer be maintained.

[![Build Status](https://camo.githubusercontent.com/f0e97b7245c61eb57a5d1a62d2a4aade5c308179d48bf7768b904067874845ac/68747470733a2f2f7472617669732d63692e6f72672f706f707068702f706f702d617263686976652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/popphp/pop-archive)[![Coverage Status](https://camo.githubusercontent.com/5b2ca4f7bdb49eabd7b8af9b8bf87ac2ceabcac823967803cad803105a5dbe7a/687474703a2f2f63632e706f707068702e6f72672f636f7665726167652e7068703f636f6d703d706f702d61726368697665)](http://cc.popphp.org/pop-archive/)

OVERVIEW
--------

[](#overview)

`pop-archive` provides a normalized interface and integrated adapters to let a user decompress, extract, package and compress files in a common archive format. The supported formats are:

- tar
- tar.gz
- tar.bz2
- zip

`pop-archive` is a component of the [Pop PHP Framework](http://www.popphp.org/).

INSTALL
-------

[](#install)

Install `pop-archive` using Composer.

```
composer require popphp/pop-archive

```

BASIC USAGE
-----------

[](#basic-usage)

### Extract a zip archive

[](#extract-a-zip-archive)

```
$archive = new Pop\Archive\Archive('test.zip');
$archive->extract('/path/to/extract/files');
```

### Extract a tar.gz archive

[](#extract-a-targz-archive)

```
// It will auto-detect and automatically decompress a compressed TAR file
$archive = new Pop\Archive\Archive('test.tar.gz');
$archive->extract('/path/to/extract/files');
```

### Add files to a zip archive

[](#add-files-to-a-zip-archive)

```
$archive = new Pop\Archive\Archive('test.zip');
$archive->addFiles('/path/to/single/file.txt');
$archive->addFiles([
    '/path/to/multiple/files1.txt',
    '/path/to/multiple/files2.txt',
    '/path/to/multiple/files3.txt',
]);
```

### Add files to a tar archive and compress

[](#add-files-to-a-tar-archive-and-compress)

```
$archive = new Pop\Archive\Archive('test.tar');
$archive->addFiles('/path/to/folder/of/files');

// Creates the compressed archive file 'test.tar.bz2'
$archive->compress('bz2');
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~119 days

Recently: every ~94 days

Total

6

Last Release

3363d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c19dee900e9e20039c723cc403f76b5c22ac2dddb3f86773ae64fb082d4949e2?d=identicon)[nicksagona](/maintainers/nicksagona)

---

Top Contributors

[![nicksagona](https://avatars.githubusercontent.com/u/898670?v=4)](https://github.com/nicksagona "nicksagona (22 commits)")

---

Tags

phparchivetarziprarpoppop php

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/popphp-pop-archive/health.svg)

```
[![Health](https://phpackages.com/badges/popphp-pop-archive/health.svg)](https://phpackages.com/packages/popphp-pop-archive)
```

###  Alternatives

[wapmorgan/unified-archive

UnifiedArchive - an archive manager with unified interface of working with all popular archive formats (zip/7z/rar/gz/bz2/xz/cab/tar/tar.gz/tar.bz2/tar.x/tar.Z/...) for PHP with ability for listing, reading, extracting and creation + built-in console archive manager.

2791.6M7](/packages/wapmorgan-unified-archive)[barracudanetworks/archivestream-php

A library for dynamically streaming dynamic tar or zip files without the need to have the complete file stored on the server.

77192.2k1](/packages/barracudanetworks-archivestream-php)[splitbrain/php-archive

Pure-PHP implementation to read and write TAR and ZIP archives

1061.4M20](/packages/splitbrain-php-archive)[raulfraile/distill

Smart compressed files extractor

228190.4k9](/packages/raulfraile-distill)[kiwilan/php-archive

PHP package to handle archives (.zip, .rar, .tar, .7z, .pdf) with unified API and hybrid solution (native/p7zip), designed to works with EPUB and CBA (.cbz, .cbr, .cb7, .cbt).

1027.6k1](/packages/kiwilan-php-archive)[mmoreram/extractor

Extractor project for php

21132.0k8](/packages/mmoreram-extractor)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
