PHPackages                             abell/tools - 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. abell/tools

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

abell/tools
===========

a simple toolbox

1.1(5y ago)08Apache2PHP

Since Nov 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/RoseKissYou/abellTools)[ Packagist](https://packagist.org/packages/abell/tools)[ RSS](/packages/abell-tools/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

工具合集
====

[](#工具合集)

功能
--

[](#功能)

1.0

- 递归实现侧边栏(层级从属关系)（getTree）

部署方式
----

[](#部署方式)

### Composer

[](#composer)

```
composer require abell/tools
```

数组小工具
-----

[](#数组小工具)

```
use Abell/AeArrayTool;

...

public function hello()
    {
        $array = [
            ['id'=>1,'pid'=>0,'name'=>'学生'],
            ['id'=>2,'pid'=>1,'name'=>'小敏'],
            ['id'=>3,'pid'=>0,'name'=>'老师'],
            ['id'=>4,'pid'=>3,'name'=>'张三'],
            ['id'=>5,'pid'=>1,'name'=>'小红']
        ];
        $result = AeArrayTool::getTree($array);
        return json_encode($result);
    }
```

得到的结果

```
[
    {
        "id": 1,
        "pid": 0,
        "name": "学生",
        "level": 1,
        "son": [
            {
                "id": 2,
                "pid": 1,
                "name": "小敏",
                "level": 2,
                "son": []
            },
            {
                "id": 5,
                "pid": 1,
                "name": "小红",
                "level": 2,
                "son": []
            }
        ]
    },
    {
        "id": 3,
        "pid": 0,
        "name": "老师",
        "level": 1,
        "son": [
            {
                "id": 4,
                "pid": 3,
                "name": "张三",
                "level": 2,
                "son": []
            }
        ]
    }
]
```

下面一个是去除了目录里面的空son项

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~0 days

Total

2

Last Release

1986d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

toolToolboxabell

### Embed Badge

![Health badge](/badges/abell-tools/health.svg)

```
[![Health](https://phpackages.com/badges/abell-tools/health.svg)](https://phpackages.com/packages/abell-tools)
```

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[phing/phing

PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant.

1.2k21.7M866](/packages/phing-phing)[bamarni/composer-bin-plugin

No conflicts for your bin dependencies

52722.0M854](/packages/bamarni-composer-bin-plugin)[clagiordano/weblibs-configmanager

weblibs-configmanager is a tool library for easily read and access to php config array file and direct read/write configuration file / object

163.5M9](/packages/clagiordano-weblibs-configmanager)[asinfotrack/yii2-toolbox

Yii2-Toolbox is a collection of useful helpers, widgets etc. extending the basic functionality of Yii2

1230.5k5](/packages/asinfotrack-yii2-toolbox)

PHPackages © 2026

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