PHPackages                             h4cc/mongrel2 - 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. h4cc/mongrel2

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

h4cc/mongrel2
=============

A library for handling Mongrel2 messages via ZeroMQ.

014[1 issues](https://github.com/h4cc/mongrel2/issues)PHP

Since Sep 7Pushed 11y ago1 watchersCompare

[ Source](https://github.com/h4cc/mongrel2)[ Packagist](https://packagist.org/packages/h4cc/mongrel2)[ RSS](/packages/h4cc-mongrel2/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

h4cc/mongrel2
=============

[](#h4ccmongrel2)

A Handler library for Mongrel2 and the according ZeroMQ message protocol.

This library is capable of reading requests and writing responses in mongrel2 message format over zeromq. The resulting data objects are `Request` and `Response`, which are modelled after the PHP SAPI with its `$_GET, $_POST, $_SERVER, ...` arrays.

Usage
-----

[](#usage)

Have a look at `example/handler.php`.

Current State
-------------

[](#current-state)

The mapping of requests is quite complete, except the handling of file uploads and populating the `$_FILES` array due to a missing `multipart/*` parser.

Also more complex scenarios like async-file-uploads or websockets are not yet handled.

Any help in improving this library is appreciated :)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ce109f0fc05421b5db21c1f35e9ff78be9bae38f5b6e3bd6121f2eb2417cf53?d=identicon)[h4cc](/maintainers/h4cc)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/h4cc-mongrel2/health.svg)

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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