PHPackages                             jaeger-app/compress - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jaeger-app/compress

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

jaeger-app/compress
===================

A compression wrapper to manipulate Zip files with PHP using a simple interface.

0.1.2(9y ago)1391MITPHPPHP &gt;=5.4.0

Since Apr 19Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jaeger-app/compress)[ Packagist](https://packagist.org/packages/jaeger-app/compress)[ RSS](/packages/jaeger-app-compress/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (4)Used By (1)

Jaeger Compress Object
======================

[](#jaeger-compress-object)

[![Build Status](https://camo.githubusercontent.com/7d05e23f39f2e6bd6f95599a9ba3dcd58c888dbfcb4d84ccd17f054ee49e0c0a/68747470733a2f2f7472617669732d63692e6f72672f6a61656765722d6170702f636f6d70726573732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jaeger-app/compress)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/6ee944789f662854c9179e280218bbe829c4f4b2f22609af91ede9f99269d7c3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a61656765722d6170702f636f6d70726573732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/jaeger-app/compress/?branch=master)[![Author](https://camo.githubusercontent.com/125fbdac4bce1d0b560eb4a34b10e11849db5b79150219c1118cac66a4630297/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d406d697468726136322d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/mithra62)[![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://raw.githubusercontent.com/jaeger-app/bootstrap/master/LICENSE)

A compression wrapper to manipulate Zip files with PHP using a simple interface. You can create and modify zip archives as well as extract them.

Installation
------------

[](#installation)

Add `jaeger-app/compress` as a requirement to your `composer.json`:

```
$ composer require jaeger-app/compress
```

Compress Single File
--------------------

[](#compress-single-file)

```
use \JaegerApp\Compress;

$backup_file = '/path/to/file.php';
$store_path = '/path/to/store';
$compress = new Compress();
$compress->setArchiveName($store_path)->archiveSingle($backup_file);
```

Compress Single File (Remove Original)
--------------------------------------

[](#compress-single-file-remove-original)

If you want to remove the file being compressed, just set the `setKeepOriginal()` method to `true`:

```
use \JaegerApp\Compress;

$backup_file = '/path/to/file.ext';
$store_path = '/path/to/store.zip';
$compress = new Compress();
$compress->setKeepOriginal(true)->setArchiveName($store_path)->archiveSingle($backup_file);
```

Compress Multiple Files
-----------------------

[](#compress-multiple-files)

To backup multiple files, be them single files or directories, it'll work like the below:

```
use \JaegerApp\Compress;

$store_path = '/path/to/store.zip';
$compress = new Compress();
$compress->create($store_path);
$compress->add('/path/to/file/test.php');
$compress->add('/path/to/dir2');
$compress->add('/path/to/dir3');
$path_to_archive = $compress->close();
```

Extract Archive
---------------

[](#extract-archive)

To extract an archive:

```
use \JaegerApp\Compress;

$archive_path = '/path/to/archive.zip';
$destination = '/path/to/store/data';
$compress = new Compress();
$compress->extract($archive_path, $destination);
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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 ~38 days

Total

3

Last Release

3642d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/042722642fab9b3e2f7b0711428b40053a2be0d6a1b752e50e7a7fffd06fb712?d=identicon)[mithra62](/maintainers/mithra62)

---

Top Contributors

[![eric-lamb62](https://avatars.githubusercontent.com/u/1008036?v=4)](https://github.com/eric-lamb62 "eric-lamb62 (20 commits)")

---

Tags

zipcompress

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jaeger-app-compress/health.svg)

```
[![Health](https://phpackages.com/badges/jaeger-app-compress/health.svg)](https://phpackages.com/packages/jaeger-app-compress)
```

###  Alternatives

[alchemy/zippy

Zippy, the archive manager companion

47723.2M52](/packages/alchemy-zippy)[tubalmartin/cssmin

A PHP port of the YUI CSS compressor

23142.7M63](/packages/tubalmartin-cssmin)[pclzip/pclzip

A PHP library that offers compression and extraction functions for Zip formatted archives

19313.2M4](/packages/pclzip-pclzip)[spatie/laravel-personal-data-export

Create personal data downloads in a Laravel app

548569.8k9](/packages/spatie-laravel-personal-data-export)[voku/html-min

HTML Compressor and Minifier

1814.9M58](/packages/voku-html-min)[mrclay/jsmin-php

Provides a modified port of Douglas Crockford's jsmin.c, which removes unnecessary whitespace from JavaScript files.

5213.7M27](/packages/mrclay-jsmin-php)

PHPackages © 2026

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