PHPackages                             digitaledgeit/compression - 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. digitaledgeit/compression

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

digitaledgeit/compression
=========================

Library for the compression

0.2.2(10y ago)23.6k1CC-BY-NC-ND-3.0PHPPHP &gt;=5.3

Since Nov 21Pushed 10y ago2 watchersCompare

[ Source](https://github.com/digitaledgeit/php-compression)[ Packagist](https://packagist.org/packages/digitaledgeit/compression)[ Docs](http://www.digitaledgeit.com.au)[ RSS](/packages/digitaledgeit-compression/feed)WikiDiscussions master Synced 4d ago

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

php-compression
===============

[](#php-compression)

High level classes for creating compressed archives in PHP.

Example
=======

[](#example)

Add entries to an archive:

```
$jar = new ZipArchive('test.zip');
$jar
	->addFile($dir.'/package.json', 'package.json')
	->addFolder($dir.'/scripts',    'scripts')
	->close()
;

```

Iterate entries in an archive:

```
	$zip = new ZipArchive('test.zip');
	foreach ($zip as $entry) {
		echo $entry->getName().PHP_EOL;
	}
	$zip->close();

```

Extract entries from an archive:

```
$zip = new ZipArchive('test.zip');
$zip->extractTo('/tmp'); //all entries
$zip['package.json']->extractTo('/tmp/package.json'); //a single entry
$zip->close();

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~211 days

Total

5

Last Release

3714d ago

PHP version history (2 changes)0.1.0PHP ~5.3

0.2.2PHP &gt;=5.3

### Community

Maintainers

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

---

Top Contributors

[![jameslnewell](https://avatars.githubusercontent.com/u/2237996?v=4)](https://github.com/jameslnewell "jameslnewell (1 commits)")[![joshdifabio](https://avatars.githubusercontent.com/u/5609851?v=4)](https://github.com/joshdifabio "joshdifabio (1 commits)")

---

Tags

compressionzip

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/digitaledgeit-compression/health.svg)

```
[![Health](https://phpackages.com/badges/digitaledgeit-compression/health.svg)](https://phpackages.com/packages/digitaledgeit-compression)
```

###  Alternatives

[kriswallsmith/assetic

Asset Management for PHP

3.7k48.9M161](/packages/kriswallsmith-assetic)[alchemy/zippy

Zippy, the archive manager companion

47522.6M51](/packages/alchemy-zippy)[composer/metadata-minifier

Small utility library that handles metadata minification and expansion.

181115.0M13](/packages/composer-metadata-minifier)[pclzip/pclzip

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

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

Create personal data downloads in a Laravel app

550543.8k8](/packages/spatie-laravel-personal-data-export)[voku/html-min

HTML Compressor and Minifier

1804.7M39](/packages/voku-html-min)

PHPackages © 2026

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