PHPackages                             ocramius/ocra-hop-hop - 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. ocramius/ocra-hop-hop

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

ocramius/ocra-hop-hop
=====================

Very fast worker-based HTTP Request dispatching for ZF2 that re-uses bootstrapped applications

27194PHP

Since Jan 20Pushed 12y ago8 watchersCompare

[ Source](https://github.com/Ocramius/OcraHopHop)[ Packagist](https://packagist.org/packages/ocramius/ocra-hop-hop)[ RSS](/packages/ocramius-ocra-hop-hop/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

OcraHopHop - Worker thread HTTP response dispatching for ZF2
============================================================

[](#ocrahophop---worker-thread-http-response-dispatching-for-zf2)

OcraHopHop is a project aimed at reducing latency and resources used by a ZF2 Application while dispatching an HTTP Request.

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

[](#installation)

The recommended way to install `ocramius/ocra-hop-hop` is through [composer](http://getcomposer.org/):

```
{
    "require": {
        "ocramius/ocra-hop-hop": "dev-master@dev"
    }
}
```

Working concept
---------------

[](#working-concept)

The concept behind OCraHopHop is simple, and can be summarized in following pseudo code:

```
init_autoload();
init_config();
// ...
init_application();

while ($request = get_http_request()) {
    $application->serve($request);
}
```

The idea is to avoid initialization logic by re-using resources across multiple requests.

PHP was thought for share-nothing architectures, but for greater and more complex applications, such an approach is necessary.

If you already know FastCGI, this is what it is all about.

Usage
-----

[](#usage)

1. Replace your `public/index.php` with the `examples/zf2-server.php`that you can find in OcraHopHop.
2. Copy `examples/zf2-worker.php` to your `public/` dir
3. Open a terminal, `cd` to your `public/` dir and run `php zf2-worker.php`
4. Run `siege` or `ab -k` against your ZF application
5. ...?
6. Profit!

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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/fd0445bc21fa116c259b5889377b90cbd8a34d49357321f76a74f6d2c2ae6b0c?d=identicon)[Ocramius](/maintainers/Ocramius)

---

Top Contributors

[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (9 commits)")[![siad007](https://avatars.githubusercontent.com/u/2149445?v=4)](https://github.com/siad007 "siad007 (2 commits)")[![staabm](https://avatars.githubusercontent.com/u/120441?v=4)](https://github.com/staabm "staabm (1 commits)")

### Embed Badge

![Health badge](/badges/ocramius-ocra-hop-hop/health.svg)

```
[![Health](https://phpackages.com/badges/ocramius-ocra-hop-hop/health.svg)](https://phpackages.com/packages/ocramius-ocra-hop-hop)
```

###  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)
