PHPackages                             jameschao/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. jameschao/tree

ActiveLibrary

jameschao/tree
==============

包测试

01PHP

Since Apr 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Jamesccvv/tree)[ Packagist](https://packagist.org/packages/jameschao/tree)[ RSS](/packages/jameschao-tree/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

仅为测试，开发组件包过程

```
mkdir -p packages/james/tree

```

cd 到tree目录 composer init 生成composer.json

在tree 里面建相应文件夹

```
                ├── src  # 逻辑代码文件夹
                ├── tests # 测试用例文件夹
                ├── README.md
                ├── composer.json

```

配置composer.json

```
{

    "autoload": {

        "psr-4": {

            "James\TreeClass\": "src/"  //应该是命名空间指向路径

        }

    },

    "autoload-dev": {

        "psr-4": {

            "James\TreeClass\Tests\": "tests/"

        }

    },

}

```

写相关逻辑 其实不需要手动把服务类加入一样可以。laravel5.5

composer dump-autoload

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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/82aef61c947954532fe82f0cd8025b63a8a7e49e810c2fd1d36d5d778fbe5daf?d=identicon)[james886](/maintainers/james886)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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