PHPackages                             uniondrug/http-client - 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. [Caching](/categories/caching)
4. /
5. uniondrug/http-client

ActiveLibrary[Caching](/categories/caching)

uniondrug/http-client
=====================

Uniondrug Http Client Component for uniondrug/framework

2.5.0(6y ago)07.9k12proprietaryPHPCI failing

Since Mar 5Pushed 6y ago2 watchersCompare

[ Source](https://github.com/uniondrug/http-client)[ Packagist](https://packagist.org/packages/uniondrug/http-client)[ RSS](/packages/uniondrug-http-client/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (10)Dependencies (2)Versions (25)Used By (2)

HttpClient component for uniondrug/framework
============================================

[](#httpclient-component-for-uniondrugframework)

> Uniondrug微服务Http客户端的封装，加入了Trace功能。

安装
--

[](#安装)

```
$ cd project-home
$ composer require uniondrug/http-client
```

修改 `app.php` 配置文件，导入服务。服务名称：`httpClient`。

```
return [
    'default' => [
        ......
        'providers'           => [
            ......
            \Uniondrug\HttpClient\HttpClientServiceProvider::class,
        ],
    ],
];
```

使用
--

[](#使用)

```
    // 在 Injectable 继承下来的对象中：
    $data = $this->getDI()->getShared('httpClient')->get($url);

    // 或者 直接使用 属性方式
    $data = $this->httpClient->get($url)
```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 58.1% 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 ~38 days

Recently: every ~69 days

Total

24

Last Release

2203d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/865ceb7d8226574735eab8fc82de9cfbc4a708c291b3c816e75d53944348b686?d=identicon)[wsfuyibing](/maintainers/wsfuyibing)

---

Top Contributors

[![fuyibing](https://avatars.githubusercontent.com/u/8390620?v=4)](https://github.com/fuyibing "fuyibing (25 commits)")[![xueron](https://avatars.githubusercontent.com/u/2560873?v=4)](https://github.com/xueron "xueron (18 commits)")

---

Tags

cachephalcon

### Embed Badge

![Health badge](/badges/uniondrug-http-client/health.svg)

```
[![Health](https://phpackages.com/badges/uniondrug-http-client/health.svg)](https://phpackages.com/packages/uniondrug-http-client)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k555.0M2.8k](/packages/aws-aws-sdk-php)[svix/svix

Svix PHP Library

3.3k1.1M10](/packages/svix-svix)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k52](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k20](/packages/tempest-framework)

PHPackages © 2026

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