PHPackages                             beyondlex/mongodb-tree - 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. beyondlex/mongodb-tree

ActiveLibrary

beyondlex/mongodb-tree
======================

v1.0.0(8y ago)49.5k↓36.1%1[2 issues](https://github.com/beyondlex/mongotree/issues)PHP

Since Jan 11Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (2)Used By (0)

This is a Laravel package for working with nested trees in MongoDB ().

Based on [kalnoy/nestedset](https://github.com/lazychaser/laravel-nestedset)

**Contents:**

- [Installation](#installation)
- [Usage](#usage)

Installation
------------

[](#installation)

To install the package, in terminal:

```
composer require beyondlex/mongotree

```

#### The model

[](#the-model)

Your model should use `Lex\Mongotree\TreeTrait` trait to enable nested sets:

```
use Lex\Mongotree\TreeTrait;

class Foo extends Model {
    use TreeTrait;
}
```

Usage
-----

[](#usage)

For usage please refer to original library

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

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

3049d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/46ad02697ab9c749986f32edb7027f291cbb95570f1c4f0f2d29b47d95a06aa6?d=identicon)[lex](/maintainers/lex)

---

Top Contributors

[![beyondlex](https://avatars.githubusercontent.com/u/7869143?v=4)](https://github.com/beyondlex "beyondlex (3 commits)")[![sololance](https://avatars.githubusercontent.com/u/36849576?v=4)](https://github.com/sololance "sololance (1 commits)")

### Embed Badge

![Health badge](/badges/beyondlex-mongodb-tree/health.svg)

```
[![Health](https://phpackages.com/badges/beyondlex-mongodb-tree/health.svg)](https://phpackages.com/packages/beyondlex-mongodb-tree)
```

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[area17/twill

Twill is an open source CMS toolkit for Laravel that helps developers rapidly create a custom admin console that is intuitive, powerful and flexible.

4.0k445.4k16](/packages/area17-twill)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)[riari/laravel-forum

A Laravel package providing a solid foundation for building discussion forums

64394.9k3](/packages/riari-laravel-forum)[rinvex/laravel-categories

Rinvex Categories is a polymorphic Laravel package, for category management. You can categorize any eloquent model with ease, and utilize the power of Nested Sets, and the awesomeness of Sluggable, and Translatable models out of the box.

470161.6k3](/packages/rinvex-laravel-categories)[mostafamaklad/laravel-permission-mongodb

Permission handling for Laravel 5.2 and up using mongodb

113220.0k2](/packages/mostafamaklad-laravel-permission-mongodb)

PHPackages © 2026

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