PHPackages                             technosophos/phpcompressor - 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. technosophos/phpcompressor

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

technosophos/phpcompressor
==========================

A simple PHP compressor that removes unnecessary data from PHP source code.

1.0.0(14y ago)277608MITPHPPHP &gt;=5.2.6

Since Feb 3Pushed 14y ago4 watchersCompare

[ Source](https://github.com/technosophos/PHPCompactor)[ Packagist](https://packagist.org/packages/technosophos/phpcompressor)[ Docs](https://github.com/technosophos/PHPCompactor)[ RSS](/packages/technosophos-phpcompressor/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHPCompactor: A tool for compacting PHP source files
====================================================

[](#phpcompactor-a-tool-for-compacting-php-source-files)

Authors: M Butcher (), J Pruis ()

Copyright (c) 2009-2010. Licensed under an MIT-style license. See COPYING-MIT.txt

About this package
------------------

[](#about-this-package)

This package provides a very simple PHP code compressor. It reads a single source file and then loads that source, along with all of the other locally included files, into one bigger file. The larger file is compacted by removing as much superfluous data as possible, including comments and whitespace.

Using this tool
---------------

[](#using-this-tool)

Usage:

```
php ./src/phpcompactor.php compressed_file.php source_file.php

```

This will compress `source_file.php` and all of its dependencies into `compressed_file.php`.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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

Unknown

Total

1

Last Release

5217d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1cf49dfa830249da19113949c7d32ee7f526d9855393149f196eb0da2b304055?d=identicon)[technosophos](/maintainers/technosophos)

---

Top Contributors

[![technosophos](https://avatars.githubusercontent.com/u/89193?v=4)](https://github.com/technosophos "technosophos (10 commits)")[![jurriaan](https://avatars.githubusercontent.com/u/345809?v=4)](https://github.com/jurriaan "jurriaan (2 commits)")

---

Tags

utilitycompressor

### Embed Badge

![Health badge](/badges/technosophos-phpcompressor/health.svg)

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

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[danielstjules/stringy

A string manipulation library with multibyte support

2.4k26.0M191](/packages/danielstjules-stringy)[voku/arrayy

Array manipulation library for PHP, called Arrayy!

4875.5M16](/packages/voku-arrayy)[mage2tv/magento-cache-clean

This package has been migrated to mage-os/magento-cache-clean. Please switch over at your convenience.

5432.1M3](/packages/mage2tv-magento-cache-clean)[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M16](/packages/vaimo-composer-patches)[lodash-php/lodash-php

A port of Lodash to PHP

527719.0k5](/packages/lodash-php-lodash-php)

PHPackages © 2026

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