# fibjs-fastcgi-client

> A FastCGI client implementation in fibjs, mainly designed for cummunication with PHP. let www_root="/mnt/e/workplace/fib_fcgi/php"; let idx=0; let fcgi = require("fibjs-fastcgi-client"); var client = new fcgi.FcgiClient({host:"127.0.0.1",port:

Latest version **1.1.1** (published 2021-05-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install fibjs-fastcgi-client
pnpm add fibjs-fastcgi-client
yarn add fibjs-fastcgi-client
bun add fibjs-fastcgi-client
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2021-05-31 |
| First published | 2020-02-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 38.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | exiaolv |

## Links

- npm: https://www.npmjs.com/package/fibjs-fastcgi-client
- Homepage: https://github.com/lhkzh/fibjs-fastcgi-client
- npm.io page: https://npm.io/package/fibjs-fastcgi-client

## Recent versions

- 1.1.1 (latest) — 2021-05-31
- 1.1.0 — 2021-05-31
- 1.0.14 — 2020-10-16
- 1.0.13 — 2020-10-15
- 1.0.12 — 2020-06-29
- 1.0.11 — 2020-06-19
- 1.0.10 — 2020-06-16
- 1.0.9 — 2020-06-16
- 1.0.8 — 2020-05-13
- 1.0.7 — 2020-05-13
- 1.0.6 — 2020-05-13
- 1.0.5 — 2020-04-22
- 1.0.4 — 2020-04-21
- 1.0.3 — 2020-02-09
- 1.0.2 — 2020-02-03
- … 2 more at https://npm.io/package/fibjs-fastcgi-client/versions

## README

# fibjs-fastcgi-client

A FastCGI client implementation in fibjs, mainly designed for cummunication with PHP.  
let www_root="/mnt/e/workplace/fib_fcgi/php";  
let idx=0;  
let fcgi = require("fibjs-fastcgi-client");  
var client = new fcgi.FcgiClient({host:"127.0.0.1",port:9000,root:www_root});  
var rsp=client.requestByParams("/hi.php","a=abc&i="+(idx++));  
console.log(rsp);  
client.close();


#use pool
let fcgi = require("fibjs-fastcgi-client");  
var client = new fcgi.FcgiClientPool({host:"127.0.0.1",port:9000,min:1,max:4,root:www_root});  
for(var i=0;i<100;i++){  
    require("coroutine).start(function(){  
      var rsp=client.requestByParams("/hi.php","a=abc&i="+(idx++));  
      console.log(rsp);
    });  
}  

#use unixSocket
var client = new fcgi.FcgiClient({url:"unix:/var/php.socket",root:www_root});    
var client = new fcgi.FcgiClient({url:"pipe://./pipe/php.socket",root:www_root});    
var client = new fcgi.FcgiClient({url:"tcp://./pipe/php.socket",root:www_root});

---
_Source: https://npm.io/package/fibjs-fastcgi-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
