PHPackages                             marcqualie/mongominify - 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. [Database &amp; ORM](/categories/database)
4. /
5. marcqualie/mongominify

ActiveLibrary[Database &amp; ORM](/categories/database)

marcqualie/mongominify
======================

A drop-in library which acts as a transparent filter to MongoDB documents and compresses/decompresses data on the fly

v1.0.4(12y ago)102.0k2[2 issues](https://github.com/marcqualie/mongominify/issues)1MITPHPPHP &gt;=5.3.3

Since Apr 24Pushed 12y ago3 watchersCompare

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

READMEChangelog (5)Dependencies (2)Versions (11)Used By (1)

MongoMinify (1.1-dev)
---------------------

[](#mongominify-11-dev)

[![Build Status](https://camo.githubusercontent.com/058f6bae930a8fe90e30363bd71c6f2d3b03d763e5ebe5351e3080e7aa3209bd/68747470733a2f2f7472617669732d63692e6f72672f6d6172637175616c69652f6d6f6e676f6d696e6966792e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/marcqualie/mongominify)[![Total Downloads](https://camo.githubusercontent.com/64aaef7206de5dc75e696e416538cdbd91540da4413a52ebf2156bc4bd180060/68747470733a2f2f706f7365722e707567782e6f72672f6d6172637175616c69652f6d6f6e676f6d696e6966792f642f746f74616c2e706e67)](https://packagist.org/packages/marcqualie/mongominify)[![Latest Stable Version](https://camo.githubusercontent.com/1ef664d99b2a0d6df98fab0bd51b2c43e8b72fa17d95d2e82a26f3e824af31cc/68747470733a2f2f706f7365722e707567782e6f72672f6d6172637175616c69652f6d6f6e676f6d696e6966792f76657273696f6e2e706e67)](https://packagist.org/packages/marcqualie/mongominify)[![Dependency Status](https://camo.githubusercontent.com/a19b97d27f710c21ec8c792035ca3c30700c889f75c14536018c2780cbfd7ab6/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3532306638356435363332626163316437343030303238372f62616467652e706e67)](https://www.versioneye.com/user/projects/520f85d5632bac1d74000287)[![Bitdeli Badge](https://camo.githubusercontent.com/10229b4a348c3571a4b4e787d921087a1feb8aa11d4c9c989406a4c9ae6fa2a1/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f6d6172637175616c69652f6d6f6e676f6d696e6966792f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")\[[![Say Tahanks](https://camo.githubusercontent.com/51f1fcbe23f1220979bd829bcd6a5dec33a0eac8fcca9cd7c131718d6573ee40/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622d7468616e6b2d796f752d627574746f6e2f7468616e6b2d796f752d627574746f6e2e706e67)](https://camo.githubusercontent.com/51f1fcbe23f1220979bd829bcd6a5dec33a0eac8fcca9cd7c131718d6573ee40/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622d7468616e6b2d796f752d627574746f6e2f7468616e6b2d796f752d627574746f6e2e706e67)\]( @marcqualie for making Mongo+Minify: https%3A%2F%2Fgithub.com%2Fmarcqualie%2Fmongominify)

MongoMinify is a drop-in library which acts as a transparent filter to MongoDB documents and compresses/decompresses data on the fly. PSR-2 compliant and works with PHP 5.3+.

### Getting started

[](#getting-started)

You should check out the [Getting Started](https://github.com/marcqualie/mongominify/wiki/Getting-Started) page on the Wiki to get up and running

### Quick Instalation

[](#quick-instalation)

The best way to install this library is via composer.

```
{
    "require": {
        "marcqualie/mongominify": "dev-master"
    }
}

```

### Why MongoMinify?

[](#why-mongominify)

As great as MongoDB is at so many things, it has a downside compared to other data stores that it stores it's keys wih every document. These keys quickly add up and sometimes double or even triple the amount of storage required. Myself and many other developers got around this by adding single letter key names, but this is hard to manage with large projects and documents. MongoMinify gets around this problem by transparently converting documents as they are transfered between the client and the database leaving readable code with compressed storage.

Requirements
------------

[](#requirements)

- PHP 5.3+
- MongoDB PHP Driver 1.3+

Aggregation
-----------

[](#aggregation)

The aggregation framework is very complex with a lot of use cases. I've tried to tackle it as best I can and it works for every use case I've come across. If you find a bug with minification while using the aggregtation framework, please create report it using [Github Issues](http://github.com/marcqualie/mongominify/issues).

Feedback / Contributing
-----------------------

[](#feedback--contributing)

Feedback and pull requests on Github are always welcome and encouraged.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 95% 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 ~13 days

Total

10

Last Release

4651d ago

Major Versions

v0.0.4 → v1.0.02013-06-25

### Community

Maintainers

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

---

Top Contributors

[![marcqualie](https://avatars.githubusercontent.com/u/101022?v=4)](https://github.com/marcqualie "marcqualie (151 commits)")[![scottrobertson](https://avatars.githubusercontent.com/u/68361?v=4)](https://github.com/scottrobertson "scottrobertson (7 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

---

Tags

databasecompressionlibrarymongodb

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/marcqualie-mongominify/health.svg)

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

###  Alternatives

[rah/danpu

Zero-dependency MySQL dump library for easily exporting and importing databases

64401.8k10](/packages/rah-danpu)[moloquent/moloquent

A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)

120114.6k7](/packages/moloquent-moloquent)

PHPackages © 2026

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