PHPackages                             usox/hackttp - 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. usox/hackttp

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

usox/hackttp
============

Work in progress demo implementation of facebookexperimental/hack-http-request-response-interfaces

v0.5.4(5y ago)829.1k↓50%3[4 issues](https://github.com/usox/hackttp/issues)MITHack

Since Dec 9Pushed 5y ago2 watchersCompare

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

READMEChangelog (10)Dependencies (10)Versions (15)Used By (0)

[![Build Status](https://camo.githubusercontent.com/69e317f3379de99b9128c797946732683c367b2d97801600a8b6f9f0f0819628/68747470733a2f2f7472617669732d63692e6f72672f75736f782f6861636b7474702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/usox/hackttp)

HackTTP
=======

[](#hackttp)

This is a (currently unstable) implementation of hack-http-request-response-interfaces to allow type-safe access to http requests.

Usage
-----

[](#usage)

Creating a server request object containing the request data:

```
  $server_request = \Usox\HackTTP\createServerRequestFromGlobals();
```

Creating a response:

```
  $response = \Usox\HackTTP\createResponse(200, 'Up and at them');
```

Creating an uri:

```
  $uri = \Usox\HackTTP\createUri('https://some-uri.com');
```

HackTTP also provides a set of factories to create the various classes. Those factories implement the hack-http-factory interfaces.

### Inspired by guzzles psr7 implementation

[](#inspired-by-guzzles-psr7-implementation)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.3% 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 ~65 days

Recently: every ~83 days

Total

14

Last Release

1863d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b22cf2b1ec842e01f67e5e40bcd5eb3d2ac3b02cd465ad3e00ecde3935a0fa60?d=identicon)[usox](/maintainers/usox)

---

Top Contributors

[![usox](https://avatars.githubusercontent.com/u/5184763?v=4)](https://github.com/usox "usox (65 commits)")[![jjergus](https://avatars.githubusercontent.com/u/2483917?v=4)](https://github.com/jjergus "jjergus (6 commits)")[![fredemmott](https://avatars.githubusercontent.com/u/360927?v=4)](https://github.com/fredemmott "fredemmott (5 commits)")[![lexidor](https://avatars.githubusercontent.com/u/31805625?v=4)](https://github.com/lexidor "lexidor (4 commits)")

---

Tags

hackhacklanghhvmhttpmessagepsr7requestresponsehttpresponserequeststreammessagehhvmhackhacklang

### Embed Badge

![Health badge](/badges/usox-hackttp/health.svg)

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

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

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

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

PSR-7 (HTTP Message Interface) to Nette Framework

222.9M8](/packages/contributte-psr7-http-message)[pdeans/http

PSR-7 cURL HTTP client with support for PSR-17 HTTP factories.

1466.2k3](/packages/pdeans-http)[workerman/psr7

PSR-7 message implementation that also provides common utility methods

1079.8k10](/packages/workerman-psr7)[chadicus/slim-oauth2-http

Bridge components for PSR-7 and bshaffer's OAuth2 Server http messages.

18455.2k7](/packages/chadicus-slim-oauth2-http)

PHPackages © 2026

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