PHPackages                             aiddroid/fastcgi-php - 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. aiddroid/fastcgi-php

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

aiddroid/fastcgi-php
====================

FastCGI Server &amp; Client by php language.

00PHP

Since Nov 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/aiddroid/FastCGI-php)[ Packagist](https://packagist.org/packages/aiddroid/fastcgi-php)[ RSS](/packages/aiddroid-fastcgi-php/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

FastCGI PHP Version
===================

[](#fastcgi-php-version)

FastCGI Server &amp; Client\[TODO\] by php language.

How can I use it ?
------------------

[](#how-can-i-use-it-)

setup your nginx config in nginx.conf, pass requests to FastCGI port 1234 and reload nginx:

```
    server {
        listen       8080 default_server;
        server_name  localhost _;
        server_name_in_redirect off;
        root   html;
        index  index.php index.html index.htm;

        location /fastcgi {
            fastcgi_pass 127.0.0.1:1234;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include fastcgi_params;
        }
    }
```

download FastCGI-php and run a FastCGI server:

```
git clone https://github.com/aiddroid/FastCGI-php.git
cd FastCGI-php
composer install --dev
php tests/workerman-tcp-server.php start
# OR # php tests/php-tcp-server.php
```

now, you will see some information below:

```
Workerman[tests/workerman-tcp-server.php] start in DEBUG mode
----------------------------------------- WORKERMAN -----------------------------------------
Workerman version:3.5.22          PHP version:7.3.11
------------------------------------------ WORKERS ------------------------------------------
proto   user            worker          listen                 processes    status
tcp     allen           none            fCGI://0.0.0.0:1234    1             [OK]
---------------------------------------------------------------------------------------------
Press Ctrl+C to stop. Start success.
```

use curl to test the FastCGI server:

```
curl -i "http://localhost:8080/fastcgi?uid=1" --data 'username=allen'
```

and you will see the response:

```
HTTP/1.1 200 OK
Server: nginx/1.15.0
Date: Wed, 13 Nov 2019 03:33:52 GMT
Content-Type: text/raw
Transfer-Encoding: chunked
Connection: keep-alive

hello
```

Authors
-------

[](#authors)

- [Allen](https://github.com/aiddroid) ()

License
-------

[](#license)

This project is licensed under the MIT License - for the full copyright and license information, please view the [LICENSE](LICENSE.md) file that was distributed with this source code.

---

*Copyrights (2019) All rights reserved.*

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9811c4e5393d29339bc5f08612cd6babe69bd2276756a84668fae13fc444bcce?d=identicon)[aiddroid](/maintainers/aiddroid)

---

Top Contributors

[![aiddroid](https://avatars.githubusercontent.com/u/3241146?v=4)](https://github.com/aiddroid "aiddroid (10 commits)")

### Embed Badge

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

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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