PHPackages                             zhuud/laravel-route-proxy - 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. zhuud/laravel-route-proxy

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

zhuud/laravel-route-proxy
=========================

Multi-route bulk call

v1.3(8y ago)222MITPHPPHP &gt;=7.0

Since Apr 19Pushed 7y agoCompare

[ Source](https://github.com/zhuud/laravel-route-proxy)[ Packagist](https://packagist.org/packages/zhuud/laravel-route-proxy)[ RSS](/packages/zhuud-laravel-route-proxy/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

laravel 多请求合并处理代理
=================

[](#laravel-多请求合并处理代理)

环境
--

[](#环境)

此项目支持PHP5.6，更改其中 `??` 运算符即可

使用
--

[](#使用)

`app/Exceptions/Handler.php 文件 重写此方法`

```
    use Symfony\Component\Debug\Exception\FatalErrorException;
   /**
     * Render an exception into an HTTP response.
     *
     * @param \Illuminate\Http\Request $request
     * @param Exception $exception
     * @return Exception|\Illuminate\Http\JsonResponse|\Symfony\Component\HttpFoundation\Response
     */
    public function render($request, Exception $exception)
    {
        // api路由错误直接返回
        if ($request->is('api*')) {

            // 程序错误直接退出
            if ($exception instanceof FatalErrorException) {

                return response()->json([
                    'code'      => $exception->getCode()    ?? 1000000,
                    'message'   => $exception->getMessage() ?? 'Exception Unknown.',
                ]);
            }

            return  $exception;
        }

        return parent::render($request, $exception);
    }

```

请求
--

[](#请求)

`{"foo.a":{"params1":[1,2],"params2":"123"},"foo.b":{"params":"asd"}}`

路由
--

[](#路由)

```
  Route::post('/', 'FooController@index');
  Route::post('/a', 'FooController@a')->name('foo.a');
  Route::post('/b', 'FooController@b')->name('foo.b');

```

方法
--

[](#方法)

```
   /**
     * @param \Illuminate\Http\Request $request
     * @param \Illuminate\Support\Facades\Route $route
     * @return mixed
     */
    public function index(Request $request, Route $route)
    {
        return RouteProxy::parse()
        ->setMaxCalls(8)
        ->verMaxCalls($request)
        ->dispatch($request,$route::getRoutes())
        ->getResult();
    }

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

2

Last Release

2952d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/28972835?v=4)[朱迪](/maintainers/zhuud)[@zhuud](https://github.com/zhuud)

---

Tags

laravelproxyroute

### Embed Badge

![Health badge](/badges/zhuud-laravel-route-proxy/health.svg)

```
[![Health](https://phpackages.com/badges/zhuud-laravel-route-proxy/health.svg)](https://phpackages.com/packages/zhuud-laravel-route-proxy)
```

###  Alternatives

[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17818.7k](/packages/markwalet-nova-modal-response)[nickurt/laravel-akismet

Akismet for Laravel 11.x/12.x/13.x

98145.2k3](/packages/nickurt-laravel-akismet)[creasi/laravel-nusa

A Laravel package that aim to provide Indonesia' Administrative Data

997.7k2](/packages/creasi-laravel-nusa)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1319.7k3](/packages/team-nifty-gmbh-tall-datatables)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.2k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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