express-php-serve

Express PHP Server command line for Node

Usage no npm install needed!

<script type="module">
  import expressPhpServe from 'https://cdn.skypack.dev/express-php-serve';
</script>

README

express-php-serve

Simple CLI for express-php (based on node-php-serve)

LICENSE: ISC or MIT

Sample usage

express-php-serve --php-cgi /usr/local/bin/php-cgi --port 8000 ./hellotest

Prerequisites

  • Node.js
  • npm
  • PHP installation with php-cli

How it works

Uses express-php-fix (version of express-php with fix to honor the optional php-cgi command argument) to serve PHP via php-cgi.

Major TODO(s)

  • Test with Windows
  • Automatic test suite

FUTURE

  • Version without express dependency

THANKS for guidance