All Projects → adoy → Php Fastcgi Client

adoy / Php Fastcgi Client

Licence: mit
Lightweight, single file, FastCGI client for PHP

Projects that are alternatives of or similar to Php Fastcgi Client

haste-client
CLI client for haste-server (hastebin.com) written in Python
Stars: ✭ 13 (-95.19%)
Mutual labels:  client
lighttp
Lightweight asynchronous HTTP/WS client/server
Stars: ✭ 22 (-91.85%)
Mutual labels:  client
Php Curl Class
PHP Curl Class makes it easy to send HTTP requests and integrate with web APIs
Stars: ✭ 2,903 (+975.19%)
Mutual labels:  client
ofxgo
Golang library for querying and parsing OFX
Stars: ✭ 96 (-64.44%)
Mutual labels:  client
mentos
Fresh Python Mesos Scheduler and Executor driver
Stars: ✭ 18 (-93.33%)
Mutual labels:  client
tc-client-launcher
World of Warcraft client launcher with autologin feature for TrinityCore based servers
Stars: ✭ 20 (-92.59%)
Mutual labels:  client
fano
Pascal web application framework
Stars: ✭ 21 (-92.22%)
Mutual labels:  fastcgi
Polkadot
Polkadot Node Implementation
Stars: ✭ 4,915 (+1720.37%)
Mutual labels:  client
sgi
Socket Gateway Interface
Stars: ✭ 16 (-94.07%)
Mutual labels:  fastcgi
Twitter Scraper
Scrape the Twitter Frontend API without authentication.
Stars: ✭ 3,037 (+1024.81%)
Mutual labels:  client
typeform-python-sdk
Typeform Python API client
Stars: ✭ 41 (-84.81%)
Mutual labels:  client
geektime-desktop
极客时间桌面版 for macOS/Windows/Debian
Stars: ✭ 94 (-65.19%)
Mutual labels:  client
anchor
High-Performance Erlang Memcached Client
Stars: ✭ 15 (-94.44%)
Mutual labels:  client
electron-request
Zero-dependency, Lightweight HTTP request client for Electron or Node.js
Stars: ✭ 45 (-83.33%)
Mutual labels:  client
Mirage
A fancy, customizable, keyboard-operable Qt/QML & Python Matrix chat client for encrypted and decentralized communication.
Stars: ✭ 257 (-4.81%)
Mutual labels:  client
AsyncWebSocketClient
php异步websocket客户端
Stars: ✭ 35 (-87.04%)
Mutual labels:  client
lazap
Lazap, a cross-platform Games Client/Launcher - All your games at ONE library
Stars: ✭ 15 (-94.44%)
Mutual labels:  client
Kinto.js
An Offline-First JavaScript Client for Kinto.
Stars: ✭ 268 (-0.74%)
Mutual labels:  client
Dog
A command-line DNS client.
Stars: ✭ 3,623 (+1241.85%)
Mutual labels:  client
Gameframework
a game client framework for cocoscreator
Stars: ✭ 257 (-4.81%)
Mutual labels:  client

PHP FastCGI Client

License Latest Stable Version Total Downloads

PHP FastCGI Client is a lightweight single file FastCGI client for PHP.

How can I use it ?

<?php

require 'vendor/autoload.php';

use Adoy\FastCGI\Client;

// Existing socket, such as Lighttpd with mod_fastcgi:
$client = new Client('unix:///path/to/php/socket', -1);

// Fastcgi server, such as PHP-FPM:
$client = new Client('localhost', '9000');
$content = 'key=value';
echo $client->request(
	array(
		'GATEWAY_INTERFACE' => 'FastCGI/1.0',
		'REQUEST_METHOD' => 'POST',
		'SCRIPT_FILENAME' => 'test.php',
		'SERVER_SOFTWARE' => 'php/fcgiclient',
		'REMOTE_ADDR' => '127.0.0.1',
		'REMOTE_PORT' => '9985',
		'SERVER_ADDR' => '127.0.0.1',
		'SERVER_PORT' => '80',
		'SERVER_NAME' => 'mag-tured',
		'SERVER_PROTOCOL' => 'HTTP/1.1',
		'CONTENT_TYPE' => 'application/x-www-form-urlencoded',
		'CONTENT_LENGTH' => strlen($content)
	),
	$content
);

Command line tool

Run a call through a network socket:

./fcgiget.php localhost:9000/status

Run a call through a Unix Domain Socket

./fcgiget.php unix:/var/run/php-fpm/web.sock/status

Note: This command line tool is provided for debuging purpose.

Authors

License

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


Copyrights 2010-2019 Pierrick Charron Inc. All rights reserved.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].