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

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

nazg/http-executor
==================

HTTP Component and Emit Responses

0.12.1(5y ago)06.2k1MITHack

Since Dec 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/nazg-hack/http-executor)[ Packagist](https://packagist.org/packages/nazg/http-executor)[ RSS](/packages/nazg-http-executor/feed)WikiDiscussions master Synced 2d ago

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

Nazg\\HttpExecutor
==================

[](#nazghttpexecutor)

[![Build Status](https://camo.githubusercontent.com/9f917a0875489c0cac5e2285c1de02dd91bd6f352328f9a74b575a6a0782891d/68747470733a2f2f7472617669732d63692e6f72672f6e617a672d6861636b2f687474702d6578656375746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nazg-hack/http-executor)

This library provides utilities for:

- Emitting [Hack HTTP Request and Response Interfaces](https://github.com/hhvm/hack-http-request-response-interfaces) responses.
- Running [Hack HTTP Server Request Handlers](https://github.com/nazg-hack/http-server-request-handler) server request handlers, which involves marshaling a Hack HTTP Request and Response Interfaces ServerRequestInterface, handling exceptions due to request creation, and emitting the response returned by the composed request handler.

Inspired by [zend-httphandlerrunner](https://github.com/zendframework/zend-httphandlerrunner)

Require
-------

[](#require)

HHVM 4.41.0 and above.

Installation
------------

[](#installation)

```
$ composer require nazg-hack/http-executor
```

Usage
-----

[](#usage)

```
use type Ytake\Hungrr\ServerRequestFactory;
use type Nazg\HttpExecutor\RequestHandleExecutor;
use type Nazg\HttpExecutor\Emitter\SapiEmitter;
use namespace HH\Lib\IO;

function main(): noreturn {
  list($readHandle, $writeHandle) = IO\pipe_nd();
  $executor = new RequestHandleExecutor(
    $readHandle,
    $writeHandle,
    new ExampleRequestHandler(),
    new SapiEmitter(),
    ServerRequestFactory::fromGlobals()
  );
  $executor->run();
}
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

Recently: every ~35 days

Total

13

Last Release

2189d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/47817f3dd2890864096bd77ee772ec46061432f128988ca23939b0ca486d7bc3?d=identicon)[ytake](/maintainers/ytake)

---

Top Contributors

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

---

Tags

hacklanghhvmhttphttpresponserequesthhvmhack

### Embed Badge

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

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

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

Common interface for HTTP messages

7.0k1.1B6.6k](/packages/psr-http-message)[psr/http-factory

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

1.9k728.6M2.5k](/packages/psr-http-factory)[fig/http-message-util

Utility classes and constants for use with PSR-7 (psr/http-message)

39797.5M298](/packages/fig-http-message-util)[nette/http

🌐 Nette Http: abstraction for HTTP request, response and session. Provides careful data sanitization and utility for URL and cookies manipulation.

49019.6M577](/packages/nette-http)[psr/http-server-handler

Common interface for HTTP server-side request handler

179109.8M1.1k](/packages/psr-http-server-handler)

PHPackages © 2026

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