PHPackages                             xindong888/laravel-router - 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. [Framework](/categories/framework)
4. /
5. xindong888/laravel-router

ActiveLibrary[Framework](/categories/framework)

xindong888/laravel-router
=========================

The Laravel Framework.Laravel Universal Routing.

1.2.1(5y ago)213MITPHPPHP ^7.3|^8.0

Since Feb 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/xindong888/laravel-router)[ Packagist](https://packagist.org/packages/xindong888/laravel-router)[ RSS](/packages/xindong888-laravel-router/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (11)Versions (5)Used By (0)

laravel 万能路由库
=============

[](#laravel-万能路由库)

安装: composer require xindong888/laravel-router

> 优点1. 自动匹配控制器
>
> > 例如:
> >
> > 网址:localhost/home/hello/index/id/name/......
> >
> > 控制器: App\\Http\\Controllers\\Hello.php
> >
> > 方法: index是Hello.php下的方法
> >
> > 参数: id,name.....都是参数,自动匹配到控制器方法内的参数
>
> 优点2. 可以在原有的routes-&gt;api.php和routes-&gt;web.php内指定路由
>
> 优点3. 在api或者web指定的路由会优先匹配

使用方法一
-----

[](#使用方法一)

### 1.使用composer加载 composer require xindong888/laravel-router

[](#1使用composer加载-composer-require-xindong888laravel-router)

### 2.进入配置文件夹config-&gt;app.php

[](#2进入配置文件夹config-appphp)

```

```

使用方法二
-----

[](#使用方法二)

### 1. 用app-&gt;Providers-&gt;RouteServiceProvider继承xindong888\\Laravel\\Providers\\RouteServiceProvider

[](#1-用app-providers-routeserviceprovider继承xindong888laravelprovidersrouteserviceprovider)

### 2. 清理掉boot()内的代码添加parent::boot();

[](#2-清理掉boot内的代码添加parentboot)

```
class RouteServiceProvider extends \xindong888\Laravel\Providers\RouteServiceProvider
{

    public function boot()
    {
        parent::boot();
    }

}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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

Total

4

Last Release

1876d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13087957?v=4)[金鹰视频教程](/maintainers/xindong888)[@xindong888](https://github.com/xindong888)

---

Top Contributors

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

---

Tags

frameworklaravelrouter

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/xindong888-laravel-router/health.svg)

```
[![Health](https://phpackages.com/badges/xindong888-laravel-router/health.svg)](https://phpackages.com/packages/xindong888-laravel-router)
```

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[krayin/laravel-crm

Krayin CRM

22.0k32.8k1](/packages/krayin-laravel-crm)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)

PHPackages © 2026

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