PHPackages                             laravel-admin-hx/select-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. laravel-admin-hx/select-tree

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

laravel-admin-hx/select-tree
============================

select-tree

v1.2.8(6y ago)0431MITHTMLPHP &gt;=7.0.0

Since Apr 15Pushed 6y agoCompare

[ Source](https://github.com/JiangGuangqing/select-tree)[ Packagist](https://packagist.org/packages/laravel-admin-hx/select-tree)[ RSS](/packages/laravel-admin-hx-select-tree/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (11)Used By (0)

laravel-admin select-tree
=========================

[](#laravel-admin-select-tree)

[select-tree](https://github.com/JiangGuangqing/select-tree) 是针对laravel-admin 数据模型树 的 select 联动选择插件, 可集成至表单中，或用于筛选。

单选效果

[![单选效果](https://github.com/JiangGuangqing/select-tree/raw/master/select-tree.png)](https://github.com/JiangGuangqing/select-tree/raw/master/select-tree.png)

多选效果

[![多选效果](https://github.com/JiangGuangqing/select-tree/raw/master/multipleselect-tree.png)](https://github.com/JiangGuangqing/select-tree/raw/master/multipleselect-tree.png)

### 安装

[](#安装)

`composer require laravel-admin-hx/select-tree`

### 使用

[](#使用)

```
$filter->selectTree(column, {label})->ajax(URL)->topId(1);
$form->selectTree(column, {label})->ajax(URL)->topId(1);
$form->multipleSelectTree(column, {label})->ajax(URL)->topId(1);

```

- 需要用ajax方法指定AJAX的地址，select的change触发后会GET此地址，并把当前选项的值通过参数q传递， 返回的数据结构为：

```
{
    "myself": {
        "id": 2,
        "parent_id": 1,
        "title": "xxx"
    },
    "siblings": [
        {
            "id": 2,
            "parent_id": 1,
            "title": "xxx"
        },
        ...
    ],
    "children": [
        {
            "id": 8,
            "parent_id": 2,
            "title": "xxx",
        },
        ...
    ]
}

```

其中 myself 代表自身， siblings表示同级， children 为子类。

- topId() 方法为指定顶级ID，默认为0；

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 55% 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 ~22 days

Recently: every ~4 days

Total

10

Last Release

2388d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/147eead54a85c9cea633e668294f4e741745bcd7b39d086e4fa0a5babdb7ed68?d=identicon)[JiangGuangqing](/maintainers/JiangGuangqing)

---

Top Contributors

[![JiangGuangqing](https://avatars.githubusercontent.com/u/39081437?v=4)](https://github.com/JiangGuangqing "JiangGuangqing (11 commits)")[![drake-jin-cn](https://avatars.githubusercontent.com/u/489268?v=4)](https://github.com/drake-jin-cn "drake-jin-cn (8 commits)")[![z-perfe](https://avatars.githubusercontent.com/u/24883811?v=4)](https://github.com/z-perfe "z-perfe (1 commits)")

### Embed Badge

![Health badge](/badges/laravel-admin-hx-select-tree/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-admin-hx-select-tree/health.svg)](https://phpackages.com/packages/laravel-admin-hx-select-tree)
```

###  Alternatives

[laravel-admin-ext/helpers

Helpers extension for laravel-admin

136285.0k8](/packages/laravel-admin-ext-helpers)[laravel-admin-ext/scheduling

Task scheduling extension for laravel-admin

93247.1k6](/packages/laravel-admin-ext-scheduling)[laravel-admin-ext/chartjs

Use Chartjs in laravel-admin

102180.6k1](/packages/laravel-admin-ext-chartjs)[laravel-admin-ext/config

Config extension for laravel-admin

97180.2k5](/packages/laravel-admin-ext-config)[laravel-admin-ext/china-distpicker

Distpicker extension for laravel-admin

13443.9k](/packages/laravel-admin-ext-china-distpicker)[laravel-admin-ext/backup

Backup extension for laravel-admin

7671.6k6](/packages/laravel-admin-ext-backup)

PHPackages © 2026

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