PHPackages                             aweitian/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. [Templating &amp; Views](/categories/templating)
4. /
5. aweitian/httpclient

ActiveLibrary[Templating &amp; Views](/categories/templating)

aweitian/httpclient
===================

htt client

v2.2.0(4y ago)01481MITPHPPHP &gt;=5.3.0

Since Jan 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/aweitian/httpclient)[ Packagist](https://packagist.org/packages/aweitian/httpclient)[ Docs](https://github.com/aweitian/httpclient)[ RSS](/packages/aweitian-httpclient/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (1)Versions (4)Used By (1)

安装
==

[](#安装)

> composer require aweitian/httpclient

示例
--

[](#示例)

```
$http_client = new \Aw\Httpclient\Curl();
$html = $http_client->get("https://baidu.com/")
->setOption(CURLOPT_TIMEOUT,30)
...
->send();
$response_headers = $http_client->headers_response
```

测试返回结果
------

[](#测试返回结果)

```

302 Found

302 Found
bfe/1.0.8.18

```

```
array(6) {
  ["Server"]=>
  string(12) "bfe/1.0.8.18"
  ["Date"]=>
  string(29) "Fri, 22 Oct 2021 23:06:44 GMT"
  ["Content-Type"]=>
  string(9) "text/html"
  ["Content-Length"]=>
  string(3) "161"
  ["Connection"]=>
  string(10) "keep-alive"
  ["Location"]=>
  string(21) "http://www.baidu.com/"
}

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

1663d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f29043b8f5aebb2d7a34302c1bc1626bd711398bb0c5387cd8630b45057a4c9?d=identicon)[awei.tian](/maintainers/awei.tian)

---

Top Contributors

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

---

Tags

view

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[eftec/bladeone

The standalone version Blade Template Engine from Laravel in a single php file

8208.4M87](/packages/eftec-bladeone)[laracasts/presenter

Simple view presenters

8643.4M46](/packages/laracasts-presenter)[jenssegers/blade

The standalone version of Laravel's Blade templating engine for use outside of Laravel.

8661.2M109](/packages/jenssegers-blade)[backpack/generators

Generate files for laravel projects

3122.6M18](/packages/backpack-generators)[laminas/laminas-view

Fast and type safe HTML templating library with a flexible plugin system supporting multistep template composition

7526.3M230](/packages/laminas-laminas-view)[friendsofcake/cakephp-csvview

A CSV View class for CakePHP

1762.5M3](/packages/friendsofcake-cakephp-csvview)

PHPackages © 2026

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