File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 1
1
example
2
+ php-0.0.1.tgz
3
+ .git
Original file line number Diff line number Diff line change
1
+ <img style =" float : right ; width : 200px ;" src =" https://raw2.github.com/mkschreder/siteboot_php/master/node_php_small.jpg " />
1
2
NodePHP - run wordpress (and other php scripts) with node
2
3
---------------------------------
3
4
4
5
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.
5
6
7
+ Installation
8
+ ------------
9
+
10
+ npm install node-php
11
+
12
+ Usage
13
+ -----
14
+
6
15
To run wordpress with node js and express do this:
7
16
8
17
var express = require('express');
@@ -17,6 +26,11 @@ To run wordpress with node js and express do this:
17
26
18
27
console.log("Server listening!");
19
28
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
+
20
34
Dependencies
21
35
------------
22
36
Original file line number Diff line number Diff line change 2
2
"author" : {
3
3
"name" : " Martin K. Schröder"
4
4
},
5
- "name" : " php" ,
5
+ "name" : " node- php" ,
6
6
"description" : " Node JS modules for running wordpress in node js" ,
7
7
"version" : " 0.0.1" ,
8
8
"repository" : {
You can’t perform that action at this time.
0 commit comments