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.3k↓100%15MITPHP

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 2mo ago

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

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 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community15

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

3351d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a687a3547d7a47791211285809677987ad4caa38852c66fc244ec8547e73eb5c?d=identicon)[acabin](/maintainers/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

[league/route

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

6633.1M115](/packages/league-route)[dflydev/fig-cookies

Cookies for PSR-7 HTTP Message Interface.

2268.5M102](/packages/dflydev-fig-cookies)[neomerx/cors-psr7

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

682.4M19](/packages/neomerx-cors-psr7)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[wellrested/wellrested

Simple PHP Library for RESTful APIs

4818.7k4](/packages/wellrested-wellrested)[mtymek/blast-base-url

PSR-7 middleware and helpers for working with base URL.

1054.0k3](/packages/mtymek-blast-base-url)

PHPackages © 2026

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