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

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

eghojansu/project-compress
==========================

Compress project with PHP and 7zip

047PHP

Since Sep 30Pushed 4y ago1 watchersCompare

[ Source](https://github.com/eghojansu/project-compress)[ Packagist](https://packagist.org/packages/eghojansu/project-compress)[ RSS](/packages/eghojansu-project-compress/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Compress Tool
=================

[](#php-compress-tool)

Compress project folder

Installation and Usage
----------------------

[](#installation-and-usage)

`composer require --dev eghojansu/project-compress:dev-master`

Use in your project: `vendor/bin/compress`

Options
-------

[](#options)

Create `compress.json` or `compress.json.dist` in current working directory.

Default options:

```
{
    "bin": null,
    "dest": "{cwd}/dist",
    "dir": "{cwd}",
    "exclude_extensions": ["7z", "bak", "db", "env", "gz", "zip", "rar"],
    "exclude_recursives": ["~$*"],
    "exclude_extras": null,
    "excludes": [".git", ".vs", "dist", "node_modules", "var", "vendor"],
    "extension": null,
    "format": "7z",
    "name": null,
    "options": "-mx=9 -m0=lzma2",
    "overrides": null
}
```

*Please refers to 7zip for `format` and `options` option.*

*Overrides consists of environment and overriden option as below.*

```
{
    "overrides": {
        "prod": {
            "exclude_extras": "exclude/other/directory-or-files"
        }
    }
}
```

Then run command with `vendor/bin/compress --env=prod`. The configuration in `overrides.prod` will be merged with the main configuration.

Supported compressor
--------------------

[](#supported-compressor)

- [7zip](https://www.7-zip.org/)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13988676?v=4)[ekokurniawan](/maintainers/ekokurniawan)[@ekokurniawan](https://github.com/ekokurniawan)

---

Top Contributors

[![eghojansu](https://avatars.githubusercontent.com/u/10484419?v=4)](https://github.com/eghojansu "eghojansu (16 commits)")

### Embed Badge

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

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

###  Alternatives

[phalcon/zephir

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

3.4k414.1k18](/packages/phalcon-zephir)[code-tool/jaeger-client-php

35520.8k9](/packages/code-tool-jaeger-client-php)[rafaelfragoso/haversini-formula

This PHP class can replace the Google Distance Matrix to calculate the distance between two points using latitude and longitude. It will prevent you to do massive requests to Google servers and enhance your service performance.

45212.0k](/packages/rafaelfragoso-haversini-formula)

PHPackages © 2026

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