PHPackages                             garveen/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. [HTTP &amp; Networking](/categories/http)
4. /
5. garveen/fastcgi

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

garveen/fastcgi
===============

An effective FastCGI to psr-7 adapter

0.1.2(9y ago)57.3k18MITPHP

Since Jan 25Pushed 9y ago2 watchersCompare

[ Source](https://github.com/garveen/fastcgi)[ Packagist](https://packagist.org/packages/garveen/fastcgi)[ RSS](/packages/garveen-fastcgi/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (4)Used By (8)

README
======

[](#readme)

This library is an effective `FastCGI` to [`PSR-7`](http://www.php-fig.org/psr/psr-7/) adapter.

Install
=======

[](#install)

```
composer require garveen/fastcgi
```

Usage
=====

[](#usage)

```
use Garveen\FastCgi\FastCgi;
use Psr\Http\Message\ServerRequestInterface;

// First of all, define 3 callbacks

// When a request is ready, this library will call $requestCallback:
$requestCallback = function (ServerRequestInterface $serverRequest) {
	// Do something...
	// And the response must be instance of Psr\Http\Message\ResponseInterface
	// This library provides Garveen\FastCgi\Response
	return new Response;
};

// After this library got the response, $sendCallback will be called:
$sendCallback = function (int $fd, string $data) {
	// send $data to downstream
	fwrite($downstreams[$fd], $data);
};

// At the end, if keepalive is not set, there will be $closeCallback:
$closeCallback = function (int $fd) {
	fclose($downstreams[$fd]);
};

// The instance
$fastcgi = new FastCgi($requestCallback, $sendCallback, $closeCallback, $logger);

// Once you have recevied a FastCGI network-package, just pass it to the instance:
$fastcgi->receive(int $fd, string $data);
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity55

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

Total

3

Last Release

3397d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/236217100?v=4)[acabin](/maintainers/acabin)[@acabin](https://github.com/acabin)

---

Top Contributors

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

---

Tags

psr-7psr7fastcgi

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

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

PSR HTTP message bridge

1.3k312.3M932](/packages/symfony-psr-http-message-bridge)[league/route

Fast routing and dispatch component including PSR-15 middleware, built on top of FastRoute.

6673.2M140](/packages/league-route)[dflydev/fig-cookies

Cookies for PSR-7 HTTP Message Interface.

2258.8M112](/packages/dflydev-fig-cookies)[neomerx/cors-psr7

Framework agnostic (PSR-7) CORS implementation (www.w3.org/TR/cors/)

682.5M22](/packages/neomerx-cors-psr7)

PHPackages © 2026

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