PHPackages                             hollodotme/fast-cgi-proxy - 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. hollodotme/fast-cgi-proxy

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

hollodotme/fast-cgi-proxy
=========================

A proxy for distributing (a)sync requests to multiple php-fpm sockets/pools.

v0.2.0(6y ago)11211MITPHPPHP &gt;=7.1

Since Nov 25Pushed 6y ago3 watchersCompare

[ Source](https://github.com/hollodotme/fast-cgi-proxy)[ Packagist](https://packagist.org/packages/hollodotme/fast-cgi-proxy)[ RSS](/packages/hollodotme-fast-cgi-proxy/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

[![CircleCI](https://camo.githubusercontent.com/69ca5a7c9621abf43b4fca2a788cfbdef1ef22b4e6c47797ba3cc6435f821b69/68747470733a2f2f636972636c6563692e636f6d2f67682f686f6c6c6f646f746d652f666173742d6367692d70726f78792e7376673f7374796c653d737667)](https://circleci.com/gh/hollodotme/fast-cgi-proxy)[![Latest Stable Version](https://camo.githubusercontent.com/327c1e9ac7cb8b7ca825b8568c213b8a860fb12040bbb98196130c36d772a08b/68747470733a2f2f706f7365722e707567782e6f72672f686f6c6c6f646f746d652f666173742d6367692d70726f78792f762f737461626c65)](https://packagist.org/packages/hollodotme/fast-cgi-proxy)[![Total Downloads](https://camo.githubusercontent.com/fc790503026204e553488c1f3196db4a0775c85e125092f466346409c37981a3/68747470733a2f2f706f7365722e707567782e6f72672f686f6c6c6f646f746d652f666173742d6367692d70726f78792f646f776e6c6f616473)](https://packagist.org/packages/hollodotme/fast-cgi-proxy)[![codecov](https://camo.githubusercontent.com/1ce5b77004aa314518cc4ea171a201b5620c1554f881846b070901021e8b5523/68747470733a2f2f636f6465636f762e696f2f67682f686f6c6c6f646f746d652f666173742d6367692d70726f78792f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/hollodotme/fast-cgi-proxy)

FastCGI Proxy
=============

[](#fastcgi-proxy)

Description
-----------

[](#description)

A proxy for distributing (a)sync requests to multiple fastCGI servers.

Installation
------------

[](#installation)

```
composer require hollodotme/fast-cgi-proxy
```

Usage
-----

[](#usage)

### Request distribution

[](#request-distribution)

The proxy can distribute requests to multiple fastCGI servers in the following ways:

1. Randomly
2. Via round robin

#### Random distribution

[](#random-distribution)

To set up random distribution use the following example code:

```
