PHPackages                             lisachenko/protocol-fcgi - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. lisachenko/protocol-fcgi

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lisachenko/protocol-fcgi
========================

Implementation of FCGI Protocol in PHP

3.0.0(5y ago)126104.5k↓50%10[1 PRs](https://github.com/lisachenko/protocol-fcgi/pulls)2MITPHPPHP ^7.4||^8.0

Since Sep 8Pushed 3y ago9 watchersCompare

[ Source](https://github.com/lisachenko/protocol-fcgi)[ Packagist](https://packagist.org/packages/lisachenko/protocol-fcgi)[ RSS](/packages/lisachenko-protocol-fcgi/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (10)Used By (2)

Object-oriented implementation of FCGI Protocol for PHP
-------------------------------------------------------

[](#object-oriented-implementation-of-fcgi-protocol-for-php)

FastCGI is an open extension to CGI that provides high performance for all Internet applications without the penalties of Web server APIs.

Many modern web-servers such as nginx, apache, lighthttpd, etc are communicating with PHP via FCGI. So, this protocol is well known and used in many applications. More detailed information about the protocol is available here here:

[![Build Status](https://camo.githubusercontent.com/bc524d4050c95724997932310c6709f2b16fbe3a3fd5018b499a4fc2fe614131/68747470733a2f2f7472617669732d63692e6f72672f6c6973616368656e6b6f2f70726f746f636f6c2d666367692e737667)](https://travis-ci.org/lisachenko/protocol-fcgi)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8ec7db7ce0aacbb3283ec5954d31401ea76f946296a804a31f7e17541dcd9358/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c6973616368656e6b6f2f70726f746f636f6c2d666367692f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lisachenko/protocol-fcgi/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/1276e64376ca6fd9f68d3ad9edf304c7a7a911707f6a14c2fb15e881df382c81/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c6973616368656e6b6f2f70726f746f636f6c2d666367692f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lisachenko/protocol-fcgi/?branch=master)[![Packagist](https://camo.githubusercontent.com/83c34173457df01fc599ddfa3da40abb491e2ffd3ba5fc8a018b9addc3d697e4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6973616368656e6b6f2f70726f746f636f6c2d666367692e737667)](https://github.com/lisachenko/protocol-fcgi)[![Minimum PHP Version](https://camo.githubusercontent.com/92fabb75236db7d7453db0680cfab230e4ba78cc321ad3864794f78327f3f3b0/687474703a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e342d3838393242462e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/b16c28d458f467957bdf3816987da51bb46a177a8971f070bd0774b263508f87/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c6973616368656e6b6f2f70726f746f636f6c2d666367692e737667)](https://packagist.org/packages/lisachenko/protocol-fcgi)

Usage
-----

[](#usage)

This library can be used for implementing both client and server side of FCGI application. For example, nginx can connect to the PHP FCGI daemon, or some library code can connect to the FPM as a FCGI client.

To install this library, just write

```
$ composer require lisachenko/protocol-fcgi
```

After that you can use an API to parse/create FCGI requests and responses.

Simple FCGI-client:

```
