express-php-serve
v0.1.0
Published
Express PHP Server command line for Node
Downloads
4
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
- https://developer.atlassian.com/blog/2015/11/scripting-with-node/
- http://stackoverflow.com/questions/10396305/npm-package-bin-script-for-windows
- http://shapeshed.com/writing-cross-platform-node/
- https://leanpub.com/npm/read