A drop-in library which acts as a transparent filter to MongoDB documents and compresses/decompresses data on the fly. Entirely namespaced, PSR-0 compliant and works with both PHP 5.3 and 5.4.
You should check out the Getting Started page on the Wiki to get up and running
Put the following inside your composer.json
{
"require": {
"marcqualie/mongominify": "0.0.*"
}
}
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.
Any feedback, pull requests or documentation would be greatly apreciated.