@@ -6,24 +6,28 @@ With Node PHP you can leverage the speed of node js and run all of the widely av
6
6
Installation
7
7
------------
8
8
9
- npm install node-php
9
+ ```
10
+ npm install node-php
11
+ ```
10
12
11
13
Usage
12
14
-----
13
15
14
16
To run wordpress with node js and express do this:
15
17
16
- var express = require('express');
17
- var php = require("node-php");
18
- var path = require("path");
19
-
20
- var app = express();
21
-
22
- app.use("/", php.cgi("/path/to/wordpress"));
18
+ ``` javascript
19
+ var express = require (' express' );
20
+ var php = require (" node-php" );
21
+ var path = require (" path" );
23
22
24
- app.listen(9090 );
23
+ var app = express ( );
25
24
26
- console.log("Server listening!");
25
+ app .use (" /" , php .cgi (" /path/to/wordpress" ));
26
+
27
+ app .listen (9090 );
28
+
29
+ console .log (" Server listening!" );
30
+ ```
27
31
28
32
Explanation
29
33
-----------
@@ -40,24 +44,6 @@ Dependencies
40
44
License
41
45
-------
42
46
43
- This software is distributed under MIT license.
44
-
45
- Copyright (c) 2014-2016 Martin K. Schröder <
[email protected] >
46
-
47
- Permission is hereby granted, free of charge, to any person obtaining a copy
48
- of this software and associated documentation files (the "Software"), to deal
49
- in the Software without restriction, including without limitation the rights
50
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
51
- copies of the Software, and to permit persons to whom the Software is
52
- furnished to do so, subject to the following conditions:
53
-
54
- The above copyright notice and this permission notice shall be included in all
55
- copies or substantial portions of the Software.
47
+ Copyright © 2014-2016 Martin K. Schröder <
[email protected] >
56
48
57
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
58
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
59
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
60
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
61
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
62
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
63
- SOFTWARE.
49
+ The MIT License (MIT) - See [ LICENSE] ( ./LICENSE ) for further details.
0 commit comments