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)11.1k11PHPPHP &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 2mo ago

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

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

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

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

3120d ago

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

v1.0.1PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/c18fe81417ce2fda20f858d4aebb896f030bfc1943d892f0dd95a5fcf3cd379e?d=identicon)[zsping1989](/maintainers/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

[tightenco/ziggy

Use your Laravel named routes in JavaScript.

4.3k41.6M267](/packages/tightenco-ziggy)[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)[nickurt/laravel-akismet

Akismet for Laravel 11.x/12.x/13.x

97139.6k2](/packages/nickurt-laravel-akismet)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)

PHPackages © 2026

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