PHPackages                             aichenk/tp6-route-param - 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. aichenk/tp6-route-param

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

aichenk/tp6-route-param
=======================

tp6支持url参数顺序解析，可用于tp5升级兼容

1.2.0(4y ago)088MITPHPPHP &gt;=7.1.0

Since Jul 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/aiChenK/tp6-route-param)[ Packagist](https://packagist.org/packages/aichenk/tp6-route-param)[ RSS](/packages/aichenk-tp6-route-param/feed)WikiDiscussions main Synced 3w ago

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

tp6-route-param
===============

[](#tp6-route-param)

tp6支持url参数顺序解析，可用于tp5升级兼容(不建议) tp6将路由参数绑定方式更改为仅使用`route->param`

运行环境
----

[](#运行环境)

- PHP 7.1+
- ThinkPHP 6

安装方法
----

[](#安装方法)

```
    composer require aichenk/tp6-route-param

```

使用
--

[](#使用)

### 路由参数绑定支持顺序绑定

[](#路由参数绑定支持顺序绑定)

- `config/route.php`增加参数`'url_param_type' => 1`

### 更改路由绑定参数来源（不使用request-&gt;param())

[](#更改路由绑定参数来源不使用request-param)

- `config/route.php`增加参数`'only_route_param' => true`

更新日志
----

[](#更新日志)

2021-07-20 - v1.1.0

- 支持路由参数分发仅使用`route`中`param`(忽略`request->param()`)

2021-08-25 - v1.2.0

- 增加`Request`类支持修改路由解析参数

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Total

3

Last Release

1773d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c7b581cba80f4aa30ab4a73b3edeecbcdbcc2c4e0c8af6d015e0571d9e2246fd?d=identicon)[aiChenK](/maintainers/aiChenK)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/aichenk-tp6-route-param/health.svg)

```
[![Health](https://phpackages.com/badges/aichenk-tp6-route-param/health.svg)](https://phpackages.com/packages/aichenk-tp6-route-param)
```

###  Alternatives

[topthink/think-captcha

captcha package for thinkphp

117970.1k74](/packages/topthink-think-captcha)[topthink/think-worker

workerman extend for thinkphp

216235.9k9](/packages/topthink-think-worker)[yunwuxin/think-cron

计划任务

16816.9k](/packages/yunwuxin-think-cron)[liliuwei/thinkphp-jump

适用于thinkphp6.0+的跳转扩展

2876.7k1](/packages/liliuwei-thinkphp-jump)[zzstudio/think-addons

The ThinkPHP6 Addons Package

1578.7k](/packages/zzstudio-think-addons)[topthink/think-annotation

Annotation For ThinkPHP

4833.6k8](/packages/topthink-think-annotation)

PHPackages © 2026

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