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(5y ago)07.9k12proprietaryPHP

Since Mar 5Pushed 5y 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 today

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 80% 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

2107d 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

[psr/simple-cache

Common interfaces for simple caching

8.1k727.3M2.1k](/packages/psr-simple-cache)[psr/cache

Common interface for caching libraries

5.2k686.9M1.3k](/packages/psr-cache)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[yediyuz/laravel-cloudflare-cache

laravel-cloudflare-cache

28239.2k](/packages/yediyuz-laravel-cloudflare-cache)[beste/in-memory-cache

A PSR-6 In-Memory cache that can be used as a fallback implementation and/or in tests.

2512.2M6](/packages/beste-in-memory-cache)[ennexa/amp-update-cache

PHP Class to clear Google AMP Cache

1035.0k2](/packages/ennexa-amp-update-cache)

PHPackages © 2026

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