PHPackages                             jmflava/mongo-morph - 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. jmflava/mongo-morph

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

jmflava/mongo-morph
===================

A PHP object that can flatten MongoDB data or restore flattened data to MongoDb format.

v0.5(13y ago)126PHPPHP &gt;=5.4.6

Since Apr 17Pushed 13y ago1 watchersCompare

[ Source](https://github.com/joshuamorse/mongo-morph)[ Packagist](https://packagist.org/packages/jmflava/mongo-morph)[ RSS](/packages/jmflava-mongo-morph/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

MongoMorph
==========

[](#mongomorph)

MongoMorph is a PHP object that can flatten MongoDB data or restore flattened data to MongoDb format. You may find it useful if you want to interface with your Mongo database via flat files.

Implementation Example
----------------------

[](#implementation-example)

The most typical use case of MongoMorph is to use it within a command, which could look like the following:

```
// Code to spin up a new Mongo connection...

$db = $mongo->selectDb('your-db-here');

$mongoMorph = new Jmflava\MongoMorph\MongoMorph($db, __DIR__ . '/path/to/morph/dir');
if ($argv[1] === 'backup') {
    $mongoMorph->backup();
} elseif ($argv[1] === 'restore') {
    $mongoMorph->restore();
}

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

4821d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eea907ff459fcbf3d749d2bf847d751b710c53875d9960898bf24a67e4fd93b9?d=identicon)[Joshua Morse](/maintainers/Joshua%20Morse)

---

Top Contributors

[![joshuamorse](https://avatars.githubusercontent.com/u/204943?v=4)](https://github.com/joshuamorse "joshuamorse (3 commits)")

---

Tags

mongoflat

### Embed Badge

![Health badge](/badges/jmflava-mongo-morph/health.svg)

```
[![Health](https://phpackages.com/badges/jmflava-mongo-morph/health.svg)](https://phpackages.com/packages/jmflava-mongo-morph)
```

###  Alternatives

[bootflat/bootflat

An open source Flat UI KIT based on Bootstrap (3.3.0). A faster, easier and less repetitive way for web developers to create elegant web apps.

4.2k3.3k](/packages/bootflat-bootflat)[spatie/laravel-stats

Track application stat changes over time

450279.5k7](/packages/spatie-laravel-stats)

PHPackages © 2026

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