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

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

haruncpi/http
=============

Simple HTTP client for PHP

v1.0.1(4y ago)69733[1 PRs](https://github.com/haruncpi/http/pulls)cc-by-4.0PHPPHP &gt;=5.6.0

Since Mar 12Pushed 2y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

Simple HTTP client for PHP
==========================

[](#simple-http-client-for-php)

Install

```
composer require haruncpi/http

```

Import class

```
use Haruncpi\Http\Http;
```

### GET request

[](#get-request)

```
$url    = "https://jsonplaceholder.typicode.com/comments";
$data   = [ 'postId' => 1 ];

$response = HTTP::get( $url, $data );
```

### POST request

[](#post-request)

```
$url    = "https://jsonplaceholder.typicode.com/posts";
$data   = [ 'title' => 'This is post title' ];

$response = HTTP::post( $url, $data );
```

### More options

[](#more-options)

```
$response = HTTP::get( $url, $data, $headers, $curlOptions );
$response = HTTP::post( $url, $data, $headers, $curlOptions );
```

### Useful methods

[](#useful-methods)

```
$response->getStatusCode(); // to get response code
$response->getHeaders(); // to get all headers as array
$response->getHeader($name); // to get specific header
$response->getBody(); // to get raw response body
$response->getJson(); // to get body as assoc array
$response->getObject(); // to get body as object
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

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

Total

2

Last Release

1574d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11594794?v=4)[Md.Harun-Ur-Rashid](/maintainers/haruncpi)[@haruncpi](https://github.com/haruncpi)

---

Top Contributors

[![haruncpi](https://avatars.githubusercontent.com/u/11594794?v=4)](https://github.com/haruncpi "haruncpi (5 commits)")

---

Tags

curlhttp-clientphpphp-curl-libraryphp-http-clienthttpphphttp clientphp-curl

### Embed Badge

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

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

###  Alternatives

[smi2/phpclickhouse

PHP ClickHouse Client

84711.6M81](/packages/smi2-phpclickhouse)[odenktools/php-bca

Library REST API Untuk Develop BCA Payment

8431.6k2](/packages/odenktools-php-bca)[simpod/clickhouse-client

PHP ClickHouse Client

19132.9k1](/packages/simpod-clickhouse-client)[swoft/http-client

HTTP Client Component for Swoft

1139.3k4](/packages/swoft-http-client)[popphp/pop-http

Pop Http Component for Pop PHP Framework

1020.4k14](/packages/popphp-pop-http)[openapi/openapi-sdk

Minimal and agnostic PHP SDK for Openapi® (https://openapi.com)

171.4k1](/packages/openapi-openapi-sdk)

PHPackages © 2026

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