# node-php

> Node JS modules for running wordpress in node js

Latest version **0.0.1** (published 2014-01-26) · 0 weekly downloads

## Install

```sh
npm install node-php
pnpm add node-php
yarn add node-php
bun add node-php
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-01-26 |
| First published | 2014-01-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 106 |
| Author | Martin K. Schröder |
| Maintainers | mullvad |

## Links

- npm: https://www.npmjs.com/package/node-php
- Repository: https://github.com/mkschreder/siteboot_php
- Issues: https://github.com/mkschreder/siteboot_php/issues
- npm.io page: https://npm.io/package/node-php

## Recent versions

- 0.0.1 (latest) — 2014-01-26

## README

<center>![Node PHP](https://raw2.github.com/mkschreder/siteboot_php/master/node_php_small.jpg)</center>
NodePHP - run wordpress (and other php scripts) with node
---------------------------------

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. 

Installation
------------

	npm install node-php
	
Usage
-----

To run wordpress with node js and express do this: 

	var express = require('express');
	var php = require("php"); 
	var path = require("path"); 
	
	var app = express();
	
	app.use("/", php.cgi("/path/to/wordpress")); 

	app.listen(9090);

	console.log("Server listening!"); 

Explanation
-----------

The script will pipe all files that end in the .php extension through the php parser. All other files will be served as static content. 

Basic permalinks are supported but the support for them can probably be improved. 

Dependencies
------------

* php-cgi - you need to have the interpreter installed in order to use this extension

---
_Source: https://npm.io/package/node-php · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
