PHPackages                             jrmadsen67/mahana-hierarchy-laravel - 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. jrmadsen67/mahana-hierarchy-laravel

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

jrmadsen67/mahana-hierarchy-laravel
===================================

A hierarchy management package

3321PHP

Since Nov 20Pushed 10y ago1 watchersCompare

[ Source](https://github.com/jrmadsen67/mahana-hierarchy-laravel)[ Packagist](https://packagist.org/packages/jrmadsen67/mahana-hierarchy-laravel)[ RSS](/packages/jrmadsen67-mahana-hierarchy-laravel/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

\###Mahana Hierarchy Laravel###

Laravel package version of the Mahana Hierarchy module found here:

A complete description of the functionality is located here:

\###Installation###

Available (recommended) via composer:

```
"require": {
	 "jrmadsen67/mahana-hierarchy-laravel": "dev-master"
}

```

In you Laravel app.php file add this to providers:

```
'Jrmadsen67\MahanaHierarchyLaravel\MahanaHierarchyLaravelServiceProvider'

```

and this to your facades (optional):

```
 'MahanaHierarchy' 	  => 'Jrmadsen67\MahanaHierarchyLaravel\Facades\HierarchyFacade'

```

then run the migration:

```
php artisan migrate --package="jrmadsen67/mahana-hierarchy-laravel"

```

You may run these line to check that the installation is correct:

```
$data = ['name' => 'A parent', 'parent_id' => 0 ];
$insert = MahanaHierarchy::insert($data);
$row = MahanaHierarchy::get($insert->id);

```

A data seeder for experimenting and testing is coming soon.

\###Configuration###

Table name and fields are completely configurable to your needs. Simply publish the package with the following:

```
php artisan config:publish jrmadsen67/mahana-hierarchy-laravel

```

IMPORTANT! If you wish to use the included migration, run the publish config line BEFORE the migration and your new table name and fields will be used.

\###Differences in this release###

Aside from being a Laravel package, I have not yet fully set up the configuration to allow multiple instances and to easily change all the tabel and field names. This is coming very shortly (the main library is already set up this way, but supporting classes are not).

\###Testing###

This is fully tested, but proper Unit Testing is not yet included until done a little more...er, "properly".

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/68a4d9bb38657f2c9360f5e953323185bde37c17a22e38848215a876e399e9bd?d=identicon)[jrmadsen67](/maintainers/jrmadsen67)

---

Top Contributors

[![jrmadsen67](https://avatars.githubusercontent.com/u/821958?v=4)](https://github.com/jrmadsen67 "jrmadsen67 (26 commits)")

### Embed Badge

![Health badge](/badges/jrmadsen67-mahana-hierarchy-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/jrmadsen67-mahana-hierarchy-laravel/health.svg)](https://phpackages.com/packages/jrmadsen67-mahana-hierarchy-laravel)
```

PHPackages © 2026

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