PHPackages                             kidkang/category - 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. kidkang/category

ActiveLibrary

kidkang/category
================

category

v1.0.6(7y ago)0457proprietaryPHP

Since Mar 27Pushed 7y agoCompare

[ Source](https://github.com/kidkang/category)[ Packagist](https://packagist.org/packages/kidkang/category)[ RSS](/packages/kidkang-category/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (8)Used By (0)

\#无限级分类

1.unlimitedForLevel(cate,\[html='-'\],\[$pid=0\],$level=1) static
-----------------------------------------------------------------

[](#1unlimitedforlevelcatehtml-pid0level1-static)

> 无线分类组合成一位数组

```
Nested::unlimitedForLevel($arr)

```

2.unlimitedForlayer($cate,\[$name="child"\],\[$pid=0\])
-------------------------------------------------------

[](#2unlimitedforlayercatenamechildpid0)

> 返回多维数组

```
Nested::unlimitedForlayer($cate)

```

3.getParents($cate,$pid)
------------------------

[](#3getparentscatepid)

> 返回子分类的所有父级ID

4.getChildrenId($cate,$pid)
---------------------------

[](#4getchildrenidcatepid)

> s返回所有子分类的ID

5.getChildren($cate,$pid)
-------------------------

[](#5getchildrencatepid)

> 返回所有子级分类

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity64

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 ~0 days

Total

7

Last Release

2604d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/795a1947a504852ce60cbd24c6b4f50848627f81eac60c63dedd3dba71cbb3b8?d=identicon)[kidkang](/maintainers/kidkang)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/kidkang-category/health.svg)

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

PHPackages © 2026

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