Dunce is an easy to use PHP development server that will get your PHP apps running in minutes.
You can install Dunce using npm or build it yourself.
npm install dunce
git clone https://github.com/benmills/dunce.git
cd dunce
npm install . --dev
cake build
You can now move bin/dunce
to somewhere on your path so you can use the command line tool and move lib/index.js
onto your node path as dunce
.
Server all PHP files from the directory you're currently in with one command.
dunce
Set the port with -p
or --port
.
dunce --port 4444
You can also use dunce in a node project.
var Dunce = require('dunce').Dunce
Dunce.createServer(function (req, res) { }).listen(4000);