Switch branches/tags
Nothing to show
Clone or download
Latest commit 8be23bd Jul 11, 2018
Failed to load latest commit information.
src move sources to src folder Jul 11, 2018
.prettierrc prettier Jul 11, 2018 rename Jul 11, 2018
package.json 1.0.1 Jul 11, 2018

Express middleware for php-fpm

Express middleware for handling php requests and serve static files.

how to video


It's working seamlessly with WordPress, Joomla, Drupal!

In order to run the middleware be sure that you have a running php-fpm server.
What is php-fpm? Why php-fpm? How to install php-fpm on Windows, Mac, Linux?

Usage & Example

npm i express-php-fpm
const express = require("express")
const epf = require("express-php-fpm")

const options = {
  // root of your php files
  documentRoot: __dirname + "/php_files",

  // extra env variables
  env: {},

  // connection to your php-fpm server
  socketOptions: { port: 9000 },

const app = express()
app.use("/", epf(options))


By buying a beer.