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

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

anourvalar/http-client
======================

HTTP client

1.10.15(1mo ago)011.6k↓16.7%2MITPHPPHP ^8.1

Since Mar 18Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/AnourValar/http-client)[ Packagist](https://packagist.org/packages/anourvalar/http-client)[ Docs](https://github.com/AnourValar/http-client)[ RSS](/packages/anourvalar-http-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (42)Used By (2)

HTTP Client
===========

[](#http-client)

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

[](#installation)

```
composer require anourvalar/http-client
```

Usage
-----

[](#usage)

### API Client (JSON)

[](#api-client-json)

```
$http = new \AnourValar\HttpClient\Http;

$http->asJsonClient()->authToken('...')->body(['foo' => 'bar'])->post('https://google')->dump();
```

### Web Browser (Robot)

[](#web-browser-robot)

```
$http = new \AnourValar\HttpClient\Http;

$http->asBrowser()->referer('https://google.com')->get('https://google.com/?start=10')->dump();
```

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance91

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity77

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 ~55 days

Recently: every ~1 days

Total

41

Last Release

44d ago

PHP version history (5 changes)1.0.0PHP &gt;=7.0.0

1.5.2PHP &gt;=7.1.0

1.7.2PHP &gt;=8.0.0

1.8.0PHP &gt;=8.0

1.9.0PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![AnourValar](https://avatars.githubusercontent.com/u/54237693?v=4)](https://github.com/AnourValar "AnourValar (44 commits)")

---

Tags

httpcurlanourvalar

###  Code Quality

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[rmccue/requests

A HTTP library written in PHP, for human beings.

3.6k34.5M253](/packages/rmccue-requests)[nategood/httpful

A Readable, Chainable, REST friendly, PHP HTTP Client

1.8k17.2M265](/packages/nategood-httpful)[mashape/unirest-php

Unirest PHP

1.3k9.7M160](/packages/mashape-unirest-php)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48247.0M383](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

83510.1M71](/packages/smi2-phpclickhouse)[pear/http_request2

Provides an easy way to perform HTTP requests.

764.2M48](/packages/pear-http-request2)

PHPackages © 2026

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