PHPackages                             appserver-io/fastcgi - 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. appserver-io/fastcgi

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

appserver-io/fastcgi
====================

fastcgi client

v2.0.0(8y ago)16.4k63MITPHPPHP &gt;=5.4.0

Since Jun 26Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (8)Used By (3)

Fork of \[\]

FastCGI client library

Allows to access a FastCGI-server directly from PHP.

- Subrequest
- Testing (fetch pages as seen by the webserver)
- Background tasks

Usage
=====

[](#usage)

Preparation

```
require __DIR__ . '/../vendor/autoload.php';
use Crunch\FastCGI\Client as FastCGI;

$fastCgi = new FastCGI('unix:///var/run/php5-fpm.socket', null);
// $fastCgi = new FastCGI('localhost', 9999);
$connection = $fastCgi->connect();

```

The request

```
$request = $connection->newRequest();
$request->parameters = array(
    'GATEWAY_INTERFACE' => 'FastCGI/1.0',
    'REQUEST_METHOD' => 'POST',
    'SCRIPT_FILENAME' => '/var/www/example.php',
    'CONTENT_TYPE' => 'application/x-www-form-urlencoded',
    'CONTENT_LENGTH' => strlen('foo=bar')
);
$request->stdin = 'foo=bar';

```

Single request and response

```
$response = $connection->request($request);
echo $response->content;

```

Background (includes multiplexing)

```
$connection->sendRequest($request);
// Many code
$response = $connection->receiveResponse($request);

```

Requirements
============

[](#requirements)

- PHP =&gt; 5.3

Contributors
============

[](#contributors)

See CONTRIBUTING.md for details on how to contribute.

License
=======

[](#license)

This library is licensed under the MIT License. See the LICENSE file for details.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

7

Last Release

3014d ago

Major Versions

0.1.2 → 1.0.02015-02-13

1.0.1 → 2.x-dev2018-02-06

PHP version history (2 changes)v0.1PHP &gt;=5.3.0

2.x-devPHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/76b54aaecf7287a0520eec0009161ca457982dee83ac413bfa0d818b72d79947?d=identicon)[wagnert](/maintainers/wagnert)

![](https://www.gravatar.com/avatar/33b42e8c7314da5df45bca5d1dd786ea2b3d540fae5a5a9489580a886f2f4f39?d=identicon)[zelgerj](/maintainers/zelgerj)

![](https://www.gravatar.com/avatar/aa15f27f393eeb1f1a481fa7de89b41add17de686da79d49e07c5c77249c5e86?d=identicon)[wick-ed](/maintainers/wick-ed)

---

Top Contributors

[![kingcrunch](https://avatars.githubusercontent.com/u/90388?v=4)](https://github.com/kingcrunch "kingcrunch (25 commits)")[![zelgerj](https://avatars.githubusercontent.com/u/287595?v=4)](https://github.com/zelgerj "zelgerj (14 commits)")[![wick-ed](https://avatars.githubusercontent.com/u/4931168?v=4)](https://github.com/wick-ed "wick-ed (11 commits)")[![wagnert](https://avatars.githubusercontent.com/u/287509?v=4)](https://github.com/wagnert "wagnert (1 commits)")

---

Tags

clientserverprotocolfastcgi

### Embed Badge

![Health badge](/badges/appserver-io-fastcgi/health.svg)

```
[![Health](https://phpackages.com/badges/appserver-io-fastcgi/health.svg)](https://phpackages.com/packages/appserver-io-fastcgi)
```

###  Alternatives

[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)[phpfastcgi/fastcgi-daemon

A FastCGI daemon written in PHP

33011.4k4](/packages/phpfastcgi-fastcgi-daemon)[phpfastcgi/speedfony-bundle

A bundle to integrate a FastCGI daemon with the symfony2 framework

909.5k](/packages/phpfastcgi-speedfony-bundle)[mix/grpc

PHP gRPC based on Swoole coroutine, including protoc code generator, server, and client

583.0k3](/packages/mix-grpc)[thiagof/laravelrpc

JsonRPC Client/Server services for Laravel 5

337.5k](/packages/thiagof-laravelrpc)

PHPackages © 2026

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