PHPackages                             rackem/cgi - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. rackem/cgi

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

rackem/cgi
==========

Run CGI-based applications with Rackem

v0.3.2(12y ago)4274MITPHPPHP &gt;=5.3.0

Since Jul 8Pushed 12y ago1 watchersCompare

[ Source](https://github.com/ripeworks/rackem-cgi)[ Packagist](https://packagist.org/packages/rackem/cgi)[ Docs](http://github.com/ripeworks/rackem-cgi)[ RSS](/packages/rackem-cgi/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (6)DependenciesVersions (7)Used By (0)

Rack'em CGI
===========

[](#rackem-cgi)

Use these to serve CGI compliant applications via Rack'em.

Example
-------

[](#example)

```
return \Rackem::run(new \Rackem\Php(null, __DIR__));
```

This will serve the current directory as a PHP CGI application. The first parameter can be used to pass in a Rack'em application so you can also use this as a middleware.

Web Applications
----------------

[](#web-applications)

This is a great way to run some PHP applications locally (for development), so I included a `Rewritable` app to do just that.

```
return \Rackem::run(new \Rackem\Rewritable(null, __DIR__.'/wordpress'));
```

*This will serve a Wordpress site that is located in `./wordpress/`*

The Rewritable class can also serve other web applications like Drupal etc.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

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

Recently: every ~5 days

Total

6

Last Release

4495d ago

### Community

Maintainers

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

---

Top Contributors

[![tamagokun](https://avatars.githubusercontent.com/u/487333?v=4)](https://github.com/tamagokun "tamagokun (12 commits)")

---

Tags

servercgirackrackem

### Embed Badge

![Health badge](/badges/rackem-cgi/health.svg)

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

###  Alternatives

[spatie/laravel-webhook-server

Send webhooks in Laravel apps

1.1k8.8M22](/packages/spatie-laravel-webhook-server)[pragmarx/health

Laravel Server &amp; App Health Monitor and Notifier

2.0k1.0M2](/packages/pragmarx-health)[felixfbecker/language-server-protocol

PHP classes for the Language Server Protocol

22476.7M6](/packages/felixfbecker-language-server-protocol)[clue/socket-raw

Simple and lightweight OOP wrapper for PHP's low-level sockets extension (ext-sockets).

35111.1M48](/packages/clue-socket-raw)[voryx/thruway

Thruway WAMP router core

6771.0M17](/packages/voryx-thruway)[php-mcp/server

PHP SDK for building Model Context Protocol (MCP) servers - Create MCP tools, resources, and prompts

828280.5k25](/packages/php-mcp-server)

PHPackages © 2026

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