PHPackages                             shisa/httpclient - 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. shisa/httpclient

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

shisa/httpclient
================

A simple lightweight HTTP client for php

0.2.1(4y ago)02981MITPHPPHP &gt;=5.3

Since Sep 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Xavier-Lam/shisa-httpclient)[ Packagist](https://packagist.org/packages/shisa/httpclient)[ Docs](https://github.com/Xavier-Lam/shisa-httpclient)[ RSS](/packages/shisa-httpclient/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (1)

HTTPClient
==========

[](#httpclient)

A simple lightweight http client for PHP.

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

[](#installation)

```
composer require shisa/httpclient

```

Quickstart
----------

[](#quickstart)

```
use Shisa\HTTPClient\Clients\HTTPClient;
use Shisa\HTTPClient\Formatters\JsonFormatter;

$client = new HTTPClient();
$client->setBaseUrl('https://baidu.com');
$formatter = new JsonFormatter();
$client->setFormatter($formatter);
$response = $client->send('/debug', 'POST', ['data' => 1]);
$data = $response->json();

```

Usages
------

[](#usages)

### Extend

[](#extend)

TODOS
-----

[](#todos)

Changelog
---------

[](#changelog)

### 0.2.1

[](#021)

- (BREAKING CHANGE) createRequest方法改为public方法
- 增加FormData Formatter
- 允许给`Request`对象增加属性

### 0.2.0

[](#020)

- Auth的isInvalidAuthError改为接受Exception异常
- 增加authRequestPostPrepare方法
- PreparedRequest的headers改为Key: value

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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

Total

3

Last Release

1781d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/47b0c006c39c7e6d87a965394289a8d882138a4da2bf07f3b9c0365894877515?d=identicon)[Xavier-Lam](/maintainers/Xavier-Lam)

---

Top Contributors

[![Xavier-Lam](https://avatars.githubusercontent.com/u/8982940?v=4)](https://github.com/Xavier-Lam "Xavier-Lam (4 commits)")

---

Tags

httphttpclientHTTPRequest

### Embed Badge

![Health badge](/badges/shisa-httpclient/health.svg)

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.0B3.2k](/packages/guzzlehttp-psr7)[psr/http-message

Common interface for HTTP messages

7.1k1.0B5.5k](/packages/psr-http-message)[psr/http-factory

PSR-17: Common interfaces for PSR-7 HTTP message factories

1.9k692.9M1.9k](/packages/psr-http-factory)[psr/http-client

Common interface for HTTP clients

1.7k680.7M2.1k](/packages/psr-http-client)[psr/link

Common interfaces for HTTP links

2.5k144.1M68](/packages/psr-link)[rmccue/requests

A HTTP library written in PHP, for human beings.

3.6k34.5M258](/packages/rmccue-requests)

PHPackages © 2026

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