PHPackages                             buqiu/microservices-request - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. buqiu/microservices-request

ActiveLibrary[HTTP &amp; Networking](/categories/http)

buqiu/microservices-request
===========================

Laravel microservices http request.

v1.1.0(2y ago)04.0k↓50%MITPHPPHP ^8.1

Since Sep 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/buqiu/microservices-request)[ Packagist](https://packagist.org/packages/buqiu/microservices-request)[ RSS](/packages/buqiu-microservices-request/feed)WikiDiscussions main Synced 1mo ago

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

kafka
=====

[](#kafka)

介绍
--

[](#介绍)

微服务 Http 请求系统扩展包。

环境
--

[](#环境)

```
php >= 8.1
composer >= 2.0

```

使用
--

[](#使用)

### 1.安装

[](#1安装)

```
composer require buqiu/microservices-request
```

### 2.发布 ***microservices.php*** 配置文件

[](#2发布-microservicesphp-配置文件)

```
php artisan vendor:publish --tag=buqiu-microservices-config
```

### 3.配置 .env 文件

[](#3配置-env-文件)

```
MS_URI_PREFIX=URI 前缀
MS_USER=http://user_ms:8000
```

### 4.代码示例

[](#4代码示例)

#### 4.1 依赖注入方式

[](#41-依赖注入方式)

```
use Buqiu\MicroservicesRequest\MicroservicesHttpService;

public function __construct(MicroservicesHttpService $microservicesHttpService)
{
    $this->microservicesHttpService = $microservicesHttpService;
}

public function index()
{
    $user = $this->microservicesHttpService->setEndpoint('user')->get('user');
}
```

#### 4.2 直接实例化方式

[](#42-直接实例化方式)

```
use Buqiu\MicroservicesRequest\MicroservicesHttpService;

public function index()
{
    $user = app(MicroservicesHttpService::class)->setEndpoint('user')->get('user');
}

// 或

public function index()
{
    $user = app(MicroservicesHttpService::class, ['serviceName' => 'user'])->get('user');
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

978d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/97229ae0e947eeff418e092a036e90d81654fb9a640281ed22438ec5685bc22b?d=identicon)[buqiu](/maintainers/buqiu)

---

Top Contributors

[![buqiu](https://avatars.githubusercontent.com/u/7991121?v=4)](https://github.com/buqiu "buqiu (1 commits)")[![smallk1002](https://avatars.githubusercontent.com/u/36835076?v=4)](https://github.com/smallk1002 "smallk1002 (1 commits)")

---

Tags

httprequestlaravelmicroservicesbuqiu

### Embed Badge

![Health badge](/badges/buqiu-microservices-request/health.svg)

```
[![Health](https://phpackages.com/badges/buqiu-microservices-request/health.svg)](https://phpackages.com/packages/buqiu-microservices-request)
```

###  Alternatives

[behamin/service-proxy

for proxy or sending requests to other services with useful utilities

102.2k](/packages/behamin-service-proxy)[chelout/laravel-http-logger

A Laravel package to log HTTP requests, headers and sessions

272.0k](/packages/chelout-laravel-http-logger)[sven/super-basic-auth

A lightweight package to add basic authentication to your Laravel app.

232.6k](/packages/sven-super-basic-auth)

PHPackages © 2026

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