PHPackages                             inanepain/http - 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. inanepain/http

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

inanepain/http
==============

Http client (psr-18), request and response object message interfaces (psr-7).

0.4.0(2mo ago)1252UnlicensePHPPHP &gt;=8.4

Since May 31Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/inanepain/http)[ Packagist](https://packagist.org/packages/inanepain/http)[ Docs](https://github.com/inanepain/http)[ RSS](/packages/inanepain-http/feed)WikiDiscussions develop Synced today

READMEChangelog (1)Dependencies (4)Versions (10)Used By (2)

inanepain/http [![icon](./icon.png "inanepain/http")](./icon.png)
=================================================================

[](#inanepainhttp-)

Table of Contents

- [![icon](./icon.png "inanepain/http") inanepain/http](#inanepainhttp)
- [1. Install](#install)
- [2. Usage](#usage)
    - [2.1. Download Progress](#download-progress)
- [3. Client Download Progress](#client-download-progress)

[![icon](./icon.png "inanepain/http")](./icon.png) inanepain/http
-----------------------------------------------------------------

[](#-inanepainhttp)

Http client (psr-18), request and response object message interfaces (psr-7).

1. Install
----------

[](#1-install)

composer

```
composer require inanepain/http
```

2. Usage
--------

[](#2-usage)

```
$client = new \Inane\Http\Client();
$response = new \Inane\Http\Response();
$response->setBody('{"title":"Example"}');
$client->send($response);
```

### 2.1. Download Progress

[](#21-download-progress)

How to show progress on downloads **requested** using the **Http Client**.

Print download progress to console.

```
class Package implements NotifyProgressInterface {
    public function progress(int $download_total, int $downloaded, int $percent): void {
        if ($percent === 100) {
            printf("\rDownloaded: %d bytes", $downloaded);
        } else {
            printf("\rDownloaded: %0.2f%% (%d / %d bytes)", $percent, $downloaded, $download_total);
        }
    }
}

$pkg = new Package('xxx');

$client = new \Inane\Http\Client();
$request = new Request('GET', $pkg->getDataUrl());

$client->registerProgressListener($pkg);

$response = $client->sendRequest($request);
$json = $response->getBody()->getContents();
```

3. Client Download Progress
---------------------------

[](#3-client-download-progress)

How to show progress on downloads served using the **Http Client**.

```
// to be continued...
```

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance88

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~194 days

Recently: every ~324 days

Total

8

Last Release

79d ago

PHP version history (2 changes)0.1.0PHP &gt;=8.1

0.2.0PHP &gt;=8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/fb9f19ff5a5cb0467539819a0ab5ad82b938937d8e8f0f65d317fa2938179fae?d=identicon)[inanepain](/maintainers/inanepain)

---

Top Contributors

[![inanepain](https://avatars.githubusercontent.com/u/1823594?v=4)](https://github.com/inanepain "inanepain (67 commits)")

---

Tags

clienthttpinanepainserverhttpresponserequestpsr-7clientpsr-18libraryinaneinanepainserve

### Embed Badge

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

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.0B3.1k](/packages/guzzlehttp-psr7)[chillerlan/php-httpinterface

A PSR-7/17/18 http message/client implementation

1417.1k5](/packages/chillerlan-php-httpinterface)[art4/requests-psr18-adapter

Use WordPress/Requests as a PSR-18 HTTP client

153.3k](/packages/art4-requests-psr18-adapter)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[vultr/vultr-php

The Official Vultr API PHP Wrapper.

2243.9k1](/packages/vultr-vultr-php)[pdeans/http

PSR-7 cURL HTTP client with support for PSR-17 HTTP factories.

1466.2k3](/packages/pdeans-http)

PHPackages © 2026

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