0.0.1 • Published 9 years ago

express-php v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

express-php

serving PHP over Express & Node.js

Example

var express = require('express');
var php = require('express-php');
var app = express();

app.use(php.cgi('./httpdocs'));
app.use(express.static('./httpdocs'));

app.listen(4000);

Installation

$ npm install express-php

php-cgi should be installed, if not:

$ sudo apt-get install php5-cgi

Compiling coffee2js

$ npm install -g coffee-script
$ coffee -b -c index.coffee

License

MIT