{"id":13462370,"url":"https://github.com/adoy/PHP-FastCGI-Client","last_synced_at":"2025-03-25T01:32:09.152Z","repository":{"id":1091438,"uuid":"946044","full_name":"adoy/PHP-FastCGI-Client","owner":"adoy","description":"Lightweight, single file, FastCGI client for PHP","archived":false,"fork":false,"pushed_at":"2019-12-11T15:41:12.000Z","size":72,"stargazers_count":309,"open_issues_count":7,"forks_count":57,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-03-18T14:27:31.453Z","etag":null,"topics":["client","fastcgi","fcgi","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adoy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-09-28T16:42:43.000Z","updated_at":"2025-03-13T14:09:33.000Z","dependencies_parsed_at":"2022-08-06T10:15:20.632Z","dependency_job_id":null,"html_url":"https://github.com/adoy/PHP-FastCGI-Client","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adoy%2FPHP-FastCGI-Client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adoy%2FPHP-FastCGI-Client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adoy%2FPHP-FastCGI-Client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adoy%2FPHP-FastCGI-Client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adoy","download_url":"https://codeload.github.com/adoy/PHP-FastCGI-Client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245382159,"owners_count":20606162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client","fastcgi","fcgi","php"],"created_at":"2024-07-31T12:00:46.151Z","updated_at":"2025-03-25T01:32:08.859Z","avatar_url":"https://github.com/adoy.png","language":"PHP","readme":"# PHP FastCGI Client\n\n[![License](https://poser.pugx.org/adoy/fastcgi-client/license)](https://packagist.org/packages/adoy/fastcgi-client)\n[![Latest Stable Version](https://poser.pugx.org/adoy/fastcgi-client/v/stable)](https://packagist.org/packages/adoy/fastcgi-client)\n[![Total Downloads](https://poser.pugx.org/adoy/fastcgi-client/downloads)](https://packagist.org/packages/adoy/fastcgi-client)\n\n*PHP FastCGI Client* is a lightweight single file **FastCGI** client for PHP.\n\n## How can I use it ?\n\n```php\n\u003c?php\n\nrequire 'vendor/autoload.php';\n\nuse Adoy\\FastCGI\\Client;\n\n// Existing socket, such as Lighttpd with mod_fastcgi:\n$client = new Client('unix:///path/to/php/socket', -1);\n\n// Fastcgi server, such as PHP-FPM:\n$client = new Client('localhost', '9000');\n$content = 'key=value';\necho $client-\u003erequest(\n\tarray(\n\t\t'GATEWAY_INTERFACE' =\u003e 'FastCGI/1.0',\n\t\t'REQUEST_METHOD' =\u003e 'POST',\n\t\t'SCRIPT_FILENAME' =\u003e 'test.php',\n\t\t'SERVER_SOFTWARE' =\u003e 'php/fcgiclient',\n\t\t'REMOTE_ADDR' =\u003e '127.0.0.1',\n\t\t'REMOTE_PORT' =\u003e '9985',\n\t\t'SERVER_ADDR' =\u003e '127.0.0.1',\n\t\t'SERVER_PORT' =\u003e '80',\n\t\t'SERVER_NAME' =\u003e 'mag-tured',\n\t\t'SERVER_PROTOCOL' =\u003e 'HTTP/1.1',\n\t\t'CONTENT_TYPE' =\u003e 'application/x-www-form-urlencoded',\n\t\t'CONTENT_LENGTH' =\u003e strlen($content)\n\t),\n\t$content\n);\n```\n\n## Command line tool\n\nRun a call through a network socket:\n\n```\n./fcgiget.php localhost:9000/status\n```\n\nRun a call through a Unix Domain Socket\n\n```\n./fcgiget.php unix:/var/run/php-fpm/web.sock/status\n```\n\n\u003e **Note:** This command line tool is provided for debuging purpose.\n\n## Authors\n\n* _**[Pierrick Charron](https://github.com/adoy)** (pierrick@php.net) - Initial work_\n* _**[Remi Collet](https://github.com/remicollet)**_\n\n## License\n\nThis project is licensed under the MIT License - for the full copyright and license information, please view the [LICENSE](LICENSE) file that was distributed with this source code.\n\n---\n_Copyrights 2010-2019 Pierrick Charron Inc. All rights reserved._\n","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadoy%2FPHP-FastCGI-Client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadoy%2FPHP-FastCGI-Client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadoy%2FPHP-FastCGI-Client/lists"}