Download the PHP package appserver-io/fastcgi without Composer
On this page you can find all versions of the php package appserver-io/fastcgi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download appserver-io/fastcgi
More information about appserver-io/fastcgi
Files in appserver-io/fastcgi
Download appserver-io/fastcgi
More information about appserver-io/fastcgi
Files in appserver-io/fastcgi
Vendor appserver-io
Package fastcgi
Short Description FastCGI protocol, client and server interfaces and implementations
License MIT
Package fastcgi
Short Description FastCGI protocol, client and server interfaces and implementations
License MIT
Please rate this library. Is it a good library?
Informations about the package fastcgi
Fork of [https://github.com/CrunchPHP/fastcgi]
FastCGI client library
Allows to access a FastCGI-server directly from PHP.
- Subrequest
- Testing (fetch pages as seen by the webserver)
- Background tasks
Usage
Preparation
require __DIR__ . '/../vendor/autoload.php';
use Crunch\FastCGI\Client as FastCGI;
$fastCgi = new FastCGI('unix:///var/run/php5-fpm.socket', null);
// $fastCgi = new FastCGI('localhost', 9999);
$connection = $fastCgi->connect();
The request
$request = $connection->newRequest();
$request->parameters = array(
'GATEWAY_INTERFACE' => 'FastCGI/1.0',
'REQUEST_METHOD' => 'POST',
'SCRIPT_FILENAME' => '/var/www/example.php',
'CONTENT_TYPE' => 'application/x-www-form-urlencoded',
'CONTENT_LENGTH' => strlen('foo=bar')
);
$request->stdin = 'foo=bar';
Single request and response
$response = $connection->request($request);
echo $response->content;
Background (includes multiplexing)
$connection->sendRequest($request);
// Many code
$response = $connection->receiveResponse($request);
Requirements
- PHP => 5.3
Contributors
See CONTRIBUTING.md for details on how to contribute.
License
This library is licensed under the MIT License. See the LICENSE file for details.
All versions of fastcgi with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
react/dns Version 0.4.4
react/socket Version 0.4.*
react/socket-client Version 0.5.0
react/dns Version 0.4.4
react/socket Version 0.4.*
react/socket-client Version 0.5.0
The package appserver-io/fastcgi contains the following files
Loading the files please wait ....