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

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

ant-framework/http
==================

v0.3.0(7y ago)11261MITPHPPHP &gt;=5.6.0

Since Dec 9Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ant-framework/http)[ Packagist](https://packagist.org/packages/ant-framework/http)[ RSS](/packages/ant-framework-http/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (6)Used By (1)

Ant Framework Http Module
=========================

[](#ant-framework-http-module)

### 安装

[](#安装)

```
composer require ant-framework/http

```

#### 创建一个请求

[](#创建一个请求)

```
include "vendor/autoload.php";

$request = new \Ant\Http\Request('GET','http://www.example.com');

echo $request;

//output ..
/*
GET / HTTP/1.1
Host: www.example.com

*/
```

#### 创建一个响应

[](#创建一个响应)

```
include "vendor/autoload.php";

$response = new \Ant\Http\Response();

// 选择装饰器,设置内容,装饰response
$response = $response->selectRenderer('json')
    ->setPackage(['foo' => 'bar'])
    ->decorate($response);

echo $response;
//output ..
/*
HTTP/1.1 200 OK
Content-Type: application/json;charset=utf-8

{"foo":"bar"}
*/
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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

Total

4

Last Release

2651d ago

PHP version history (2 changes)v0.1.0PHP &gt;=5.5.0

v0.2.0PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/755ad6fc19e3debf94bfe59b23b134b06d92c16a989411f0f38553b18c7a107f?d=identicon)[rayson](/maintainers/rayson)

---

Top Contributors

[![rayson-x](https://avatars.githubusercontent.com/u/17398068?v=4)](https://github.com/rayson-x "rayson-x (67 commits)")

---

Tags

httppsr-7php

### Embed Badge

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

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

7.9k1.1B3.8k](/packages/guzzlehttp-psr7)[symfony/psr-http-message-bridge

PSR HTTP message bridge

1.3k312.3M932](/packages/symfony-psr-http-message-bridge)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28146.3k](/packages/phpro-http-tools)[mezzio/mezzio-authentication-oauth2

OAuth2 (server) authentication middleware for Mezzio and PSR-7 applications.

28545.4k3](/packages/mezzio-mezzio-authentication-oauth2)[httpsoft/http-runner

Running PSR-7 components and building PSR-15 middleware pipelines

1461.1k6](/packages/httpsoft-http-runner)

PHPackages © 2026

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