express-php

0.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i express-php

Weekly Downloads

8

Version

0.0.1

License

MIT

Last publish

Collaborators

  • alangecker