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

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

asmblah/fast-cgi
================

v0.1.2(2y ago)04.0k↓16.7%1MITPHPPHP &gt;=8.1

Since Mar 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/asmblah/fast-cgi)[ Packagist](https://packagist.org/packages/asmblah/fast-cgi)[ RSS](/packages/asmblah-fast-cgi/feed)WikiDiscussions main Synced 1mo ago

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

FastCGI Manager
===============

[](#fastcgi-manager)

[![Build Status](https://github.com/asmblah/fast-cgi/actions/workflows/main.yml/badge.svg)](https://github.com/asmblah/fast-cgi/actions?query=workflow%3ACI)

Simplifies management of a real `php-cgi` worker process or `php-fpm` worker pool.

Leverages the excellent [hollodotme/fast-cgi-client](https://github.com/hollodotme/fast-cgi-client) for a [FastCGI](https://en.wikipedia.org/wiki/FastCGI) API.

Why?
----

[](#why)

Easy testing of a FastCGI application's behaviour across requests: for example, ensuring that opcache is cleared correctly when expected.

Usage
-----

[](#usage)

```
$ composer install --dev asmblah/fast-cgi
```

### Launching a `php-cgi` instance and making a GET request to it:

[](#launching-a-php-cgi-instance-and-making-a-get-request-to-it)

Use `PhpCgiLauncher` for `php-cgi`.

#### `test.php`

[](#testphp)

```
