3.0.0 • Published 3 years ago

express-php-fpm v3.0.0

Weekly downloads
88
License
-
Repository
-
Last release
3 years ago

Express middleware for php-fpm

Express middleware for handling php requests and serve static files.

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").default

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

  // extra env variables
  env: {},

  // connection to your php-fpm server
  // https://nodejs.org/api/net.html#net_socket_connect_options_connectlistener
  socketOptions: { port: 9000 },
}

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

Donate

By buying a beer.

3.0.0

3 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.33

8 years ago

0.0.32

8 years ago

0.0.31

8 years ago

0.0.21

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago