PHPackages                             erykai/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. erykai/compress

ActiveLibrary

erykai/compress
===============

Compress media, files and images

v1.0.2(3y ago)0461MITPHPPHP &gt;=8.0

Since Jan 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Erykai/compress)[ Packagist](https://packagist.org/packages/erykai/compress)[ GitHub Sponsors](https://github.com/Erykai)[ RSS](/packages/erykai-compress/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (1)

compress
========

[](#compress)

[![Maintainer](https://camo.githubusercontent.com/8d0c30a6e6bb0e588086373acb7d3cb9c1ff2135f91a52d1a7a99a8670aa1090/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d40616c657864656f766964616c2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://instagram.com/alexdeovidal)[![Source Code](https://camo.githubusercontent.com/5a2ff9d212994de4c8efc42caeb419b3caa46d7d27d9664710707931416a957b/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6572796b61692f636f6d70726573732d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/erykai/compress)[![PHP from Packagist](https://camo.githubusercontent.com/5b55113e757270197f31223e65a9d22b40ce38016917e42bb56203269abd6338/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6572796b61692f636f6d70726573732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/erykai/compress)[![Latest Version](https://camo.githubusercontent.com/f7f52771876334def01f76256cf81cdf791163692046d3865e37f61f8181ed46/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6572796b61692f636f6d70726573732e7376673f7374796c653d666c61742d737175617265)](https://github.com/erykai/compress/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Quality Score](https://camo.githubusercontent.com/2c0a5b9a7f33a5b3cc848e057188c41f9c7da76aa9c4e14a80df7ed9283895ec/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6572796b61692f636f6d70726573732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/erykai/compress)[![Total Downloads](https://camo.githubusercontent.com/3c68d8a595f55509a28afcb5694b1ad1d998a371270693c005191fb5442fb64d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6572796b61692f636f6d70726573732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/erykai/compress)

Reduce the size of images, pdf, audio and videos

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

[](#installation)

Composer:

```
"erykai/compress": "1.0.*"
```

Terminal

```
composer require erykai/compress
```

Compress img .jpg, .gif, .png and more

```
use Erykai\Compress\Compress;

require "vendor/autoload.php";

(new Compress(__DIR__ . "/storage/", "file.jpg", 25))->img()->send();
```

Compress pdf

```
use Erykai\Compress\Compress;

require "vendor/autoload.php";

(new Compress(__DIR__ . "/storage/", "file.pdf", 25))->pdf()->send();
```

Contribution
------------

[](#contribution)

All contributions will be analyzed, if you make more than one change, make the commit one by one.

Support
-------

[](#support)

If you find faults send an email reporting to .

Credits
-------

[](#credits)

- [Alex de O. Vidal](https://github.com/alexdeovidal) (Developer)
- [All contributions](https://github.com/erykai/compress/contributors) (Contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License](https://github.com/erykai/compress/LICENSE) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

Total

3

Last Release

1230d ago

### Community

Maintainers

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

---

Top Contributors

[![alexdeovidal](https://avatars.githubusercontent.com/u/8947446?v=4)](https://github.com/alexdeovidal "alexdeovidal (6 commits)")

### Embed Badge

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

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

PHPackages © 2026

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