Skip to content

Commit 431cb86

Browse files
author
Admin
committed
..
1 parent 61eddf0 commit 431cb86

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
example
2+
php-0.0.1.tgz
3+
.git

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1+
<img style="float: right; width: 200px;" src="https://raw2.github.com/mkschreder/siteboot_php/master/node_php_small.jpg"/>
12
NodePHP - run wordpress (and other php scripts) with node
23
---------------------------------
34

45
With Node PHP you can leverage the speed of node js and run all of the widely available php scripts directly inside your express site.
56

7+
Installation
8+
------------
9+
10+
npm install node-php
11+
12+
Usage
13+
-----
14+
615
To run wordpress with node js and express do this:
716

817
var express = require('express');
@@ -17,6 +26,11 @@ To run wordpress with node js and express do this:
1726

1827
console.log("Server listening!");
1928

29+
Explanation
30+
-----------
31+
32+
The script will pipe all fils that end in the .php extension through the php parser. All other files will be served raw.
33+
2034
Dependencies
2135
------------
2236

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": {
33
"name": "Martin K. Schröder"
44
},
5-
"name": "php",
5+
"name": "node-php",
66
"description": "Node JS modules for running wordpress in node js",
77
"version": "0.0.1",
88
"repository": {

0 commit comments

Comments
 (0)