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

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

net/http
========

A basic HTTP client

1.1.2(1y ago)9808.1k↑150%7[1 PRs](https://github.com/bigcommerce/net-http/pulls)5MITPHP

Since Dec 4Pushed 1y ago31 watchersCompare

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

READMEChangelog (2)Dependencies (2)Versions (11)Used By (5)

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

[](#http-client)

Provides a basic HTTP client that wraps the PHP curl extension.

Making a GET request:

```
$client = new Net_Http_Client();
$client->get("http://bigcommerce.com/");
$body = $client->getBody();
$contentType = $client->getHeader("Content-Type");
```

Making a POST request:

```
$client = new Net_Http_Client();
$client->post("http://bigcommerce.com/contact.php", array("key"=>"value"));
$responseCode = $client->getStatus();
if ($responseCode != 200) {
    // the request returned an error response
}
```

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance40

Moderate activity, may be stable

Popularity43

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 53.8% 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 ~629 days

Recently: every ~1073 days

Total

8

Last Release

505d ago

### Community

Maintainers

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

---

Top Contributors

[![TomA-R](https://avatars.githubusercontent.com/u/1606901?v=4)](https://github.com/TomA-R "TomA-R (7 commits)")[![chrisboulton](https://avatars.githubusercontent.com/u/98472?v=4)](https://github.com/chrisboulton "chrisboulton (2 commits)")[![funivan](https://avatars.githubusercontent.com/u/425208?v=4)](https://github.com/funivan "funivan (2 commits)")[![maetl](https://avatars.githubusercontent.com/u/24809?v=4)](https://github.com/maetl "maetl (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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