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

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

cdyun/php-http
==============

php模拟http请求

v1.0.4(9mo ago)0181MITPHPPHP ^8.1

Since Sep 23Pushed 9mo agoCompare

[ Source](https://github.com/cdyun303/php-http)[ Packagist](https://packagist.org/packages/cdyun/php-http)[ RSS](/packages/cdyun-php-http/feed)WikiDiscussions main Synced today

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

php模拟http请求
===========

[](#php模拟http请求)

### 安装

[](#安装)

```
composer require cdyun/php-http

```

### 例子

[](#例子)

```
use Cdyun\PhpHttp\HttpEnforcer;

// 请求
HttpEnforcer::request($method, $url, $options = []);

// 请求参数
$options
- headers, body, query, json,form_params 等
- GET传参用query，POST传参用json，PUT传参用form_params
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance58

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

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

Total

3

Last Release

273d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/743ffd5ad49f71554f068efde387da76b1a14f3cfd608928fc6c881d3dd22dfb?d=identicon)[clrainy](/maintainers/clrainy)

---

Top Contributors

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

---

Tags

httpphpcdyun

### Embed Badge

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

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

###  Alternatives

[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.7M18](/packages/xeroapi-xero-php-oauth2)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34216.9k2](/packages/onesignal-onesignal-php-api)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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