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

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

exewen/http
===========

A http component for Exewen.

v2.1.0(1y ago)02171MITPHPPHP &gt;=7.3

Since May 27Pushed 1y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (30)Used By (1)

安装组件
----

[](#安装组件)

```
composer require exewen/http
```

复制配置
----

[](#复制配置)

```
cp -rf ./publish/exewen /your_project/config
```

初始化
---

[](#初始化)

```
!defined('BASE_PATH_PKG') && define('BASE_PATH_PKG', dirname(__DIR__, 1));
```

请求
--

[](#请求)

```
# 初始化 DI
$app      = ApplicationContext::getContainer();
$app->setProviders([LoggerProvider::class,LoggerProvider::class]);
$this->app = $app;
/** @var HttpClientInterface $http */
$http = $this->app->get(HttpClientInterface::class);

# get
$response = $http->get('nacos', '/nacos/v1/cs/configs', [
    'dataId' => $this->dataId,
    'group' => $this->group,
    'tenant' => $this->namespaceId,
]);

# post
$response = $http->post('nacos', '/nacos/v1/ns/instance', [
    'namespaceId' => $this->namespaceId,
    'serviceName' => $this->serviceName,
    'groupName' => $this->group,
    'ip' => '10.0.2.143',
    'port' => 8081,
    'metadata' => json_encode([
        'ver' => "1.0.0"
    ], JSON_UNESCAPED_UNICODE),
]);
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance48

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

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

Total

28

Last Release

384d ago

Major Versions

v1.1.7 → v2.0.02025-03-14

PHP version history (2 changes)v1.0.1PHP &gt;=7.3

v1.1.0PHP &gt;=7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f67ab9c12b404ad0421408edf24832eff0d0d7c750c85a784b1a3a15fb2648f?d=identicon)[exeweb](/maintainers/exeweb)

---

Top Contributors

[![exewen](https://avatars.githubusercontent.com/u/22954029?v=4)](https://github.com/exewen "exewen (34 commits)")

---

Tags

httpphpexewen

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[kevinrob/guzzle-cache-middleware

A HTTP/1.1 Cache for Guzzle 6. It's a simple Middleware to be added in the HandlerStack. (RFC 7234)

43117.4M104](/packages/kevinrob-guzzle-cache-middleware)[smochin/instagram-php-crawler

A simple PHP Crawler for Instagram

459.8k](/packages/smochin-instagram-php-crawler)[gouguoyin/easyhttp

EasyHttp 是一个轻量级、语义化、对IDE友好的HTTP客户端，支持常见的HTTP请求、异步请求和并发请求，让你可以快速地使用 HTTP 请求与其他 Web 应用进行通信。

361.1k](/packages/gouguoyin-easyhttp)

PHPackages © 2026

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