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

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

brokeyourbike/http-client
=========================

Http client interface and supporting trait

1.0.5(3y ago)04.9k[1 PRs](https://github.com/brokeyourbike/http-client-php/pulls)20MPL-2.0PHPPHP ^7.4|^8.0CI failing

Since Oct 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/brokeyourbike/http-client-php)[ Packagist](https://packagist.org/packages/brokeyourbike/http-client)[ RSS](/packages/brokeyourbike-http-client/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (6)Dependencies (3)Versions (8)Used By (20)

http-client
===========

[](#http-client)

[![Latest Stable Version](https://camo.githubusercontent.com/129abb490abac691e56e7fcfb4aa245b961f53eac0fe5e2f94d904a073fa95b6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f62726f6b65796f757262696b652f687474702d636c69656e742d706870)](https://github.com/brokeyourbike/http-client-php/releases)[![Total Downloads](https://camo.githubusercontent.com/28e953bb560a0b8e4170fded0e1d5d34ce598f2e1175b41e5e9ab3b7f16286a2/68747470733a2f2f706f7365722e707567782e6f72672f62726f6b65796f757262696b652f687474702d636c69656e742f646f776e6c6f616473)](https://packagist.org/packages/brokeyourbike/http-client)[![Maintainability](https://camo.githubusercontent.com/776205d24c8bf99f00959c5e18b16166c2a5012085cc7ef3f8484952d32018d2/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f62303665353133326466613639386132303736392f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/brokeyourbike/http-client-php/maintainability)[![Test Coverage](https://camo.githubusercontent.com/333815b9b2abfd5dfb40f054ba828fc61419bbee56a3cd38dca0c7ef0e43decc/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f62303665353133326466613639386132303736392f746573745f636f766572616765)](https://codeclimate.com/github/brokeyourbike/http-client-php/test_coverage)

Http client interface and supporting trait

Installation
------------

[](#installation)

```
composer require brokeyourbike/http-client
```

Usage
-----

[](#usage)

```
use BrokeYourBike\HttpClient\HttpClientInterface;
use BrokeYourBike\HttpClient\HttpClientTrait;

class ApiClient implements HttpClientInterface
{
    use HttpClientTrait;

    public function __construct(\GuzzleHttp\ClientInterface $httpClient)
    {
        $this->httpClient = $httpClient;
    }
}
```

Authors
-------

[](#authors)

- [Ivan Stasiuk](https://github.com/brokeyourbike) | [Twitter](https://twitter.com/brokeyourbike) | [LinkedIn](https://www.linkedin.com/in/brokeyourbike) | [stasi.uk](https://stasi.uk)

License
-------

[](#license)

[Mozilla Public License v2.0](https://github.com/brokeyourbike/http-client-php/blob/main/LICENSE)

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 81.3% 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 ~114 days

Recently: every ~143 days

Total

6

Last Release

1147d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/114f3c6e8506e0bba763451e8e4bcc3e94d662c2dce982a910b5d7b3444593cf?d=identicon)[brokeyourbike](/maintainers/brokeyourbike)

---

Top Contributors

[![brokeyourbike](https://avatars.githubusercontent.com/u/1554371?v=4)](https://github.com/brokeyourbike "brokeyourbike (26 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")

---

Tags

hacktoberfesthttphttp-clientinterfacephpphp8

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php

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

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k39](/packages/neuron-core-neuron-ai)[illuminate/http

The Illuminate Http package.

11937.9M7.0k](/packages/illuminate-http)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[guzzlehttp/test-server

Node.js server and PHP controller

14284.0k22](/packages/guzzlehttp-test-server)

PHPackages © 2026

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