Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brodycj/node-php-serve

PHP Server command line for Node.js
https://github.com/brodycj/node-php-serve

Last synced: about 1 month ago
JSON representation

PHP Server command line for Node.js

Awesome Lists containing this project

README

        

# node-php-serve

CLI for `node-php-server`

LICENSE: ISC or MIT

## Sample usage

```shell
php-serve --hostname localhost --port 8000 ./hellotest.php
```

## Prerequisites

- Node.js
- npm
- PHP installation

## Major limitations

This CLI runs `node-php-server`, which in turn runs runs a single PHP process.
This is a single-process, single-threaded server which will block during the
processing of each incoming request.

## Major TODO(s)

- Test with Windows
- Automatic test suite

## FUTURE

- Support multi-threading, perhaps with node-webworker-threads or JXCore

## 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