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

ActiveLibrary

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

Multi-route bulk call

v1.3(7y ago)322MITPHPPHP &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 yesterday

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 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

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

2904d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/daa4a279506710dbef59d9a38f227091f43d739432699bcd2d5d62029b370c5e?d=identicon)[zhuud](/maintainers/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

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[spatie/laravel-authorize

A middleware to check authorization

20125.8k1](/packages/spatie-laravel-authorize)[behamin/service-proxy

for proxy or sending requests to other services with useful utilities

102.2k](/packages/behamin-service-proxy)

PHPackages © 2026

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