PHPackages                             zsping1989/margin-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. zsping1989/margin-tree

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

zsping1989/margin-tree
======================

margin tree parent children node

v1.0.10(8y ago)21.1k12PHPPHP &gt;=5.6.0

Since Jul 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/zsping1989/margin-tree)[ Packagist](https://packagist.org/packages/zsping1989/margin-tree)[ RSS](/packages/zsping1989-margin-tree/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (13)Used By (2)

margin-tree
===========

[](#margin-tree)

\##用途 1.方便大家对数据结构数据,存入数据库 2.高效的查询效率 3.树状结构数据修改频率超级高的不建议使用

安装:
---

[](#安装)

**要求:**

一. php &gt;=5.6

二. 安装好composer

三. laravel/framework: 5.2.\*

四. 数据表必须拥有数字类型字段:parent\_id,level,left\_margin,right\_margin

**步骤**$ 1 composer require zsping1989/margin-tree

`` 2 在对应的模型中添加代码 use \\MarginTree\\TreeModel;

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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

Every ~47 days

Recently: every ~11 days

Total

11

Last Release

3170d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.0

v1.0.1PHP &gt;=5.6.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11209094?v=4)[zsping1989](/maintainers/zsping1989)[@zsping1989](https://github.com/zsping1989)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/zsping1989-margin-tree/health.svg)

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

###  Alternatives

[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17818.7k](/packages/markwalet-nova-modal-response)[crumbls/layup

A visual page builder plugin for Filament 5 — Divi-style grid layouts with extensible widgets.

591.7k1](/packages/crumbls-layup)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.2k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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