node-php-fpm
Install
This is a Node.js module available through the
npm registry. Installation is done using the
npm install
command:
$ npm install php-fpm
Examples
http
Using with const http = const phpFpm = const serveStatic = const php = // Optional: parameters for fastcgi-clientconst serve = const server = http server
express
Using with const express = const phpFpm = const app = app app
API
The available parameters for php-fpm
are:
Parameters for fastcgi-client
are available here.
rewrite
option
There is an implementation of the rewrite
module to handle routes the traditional nginx/Apache way.
const phpFpm = // Route rewrite for Phalcon frameworkconst php =