connect-yii
Version:
connect middleware to pass requests to FastCGI server
42 lines (41 loc) • 1.99 kB
JSON
{
"name": "connect-yii",
"version": "0.0.11",
"description": "connect middleware to pass requests to FastCGI server",
"main": "index.js",
"author": {
"name": "Pavel Kurnosov",
"email": "pashky@gmail.com"
},
"keywords": [
"connect",
"middleware",
"fastcgi",
"fpm",
"php"
],
"repository": {
"type": "git",
"url": "https://github.com/pashky/connect-fastcgi.git"
},
"dependencies": {
"fastcgi-parser": "*"
},
"engines": {
"node": "*"
},
"bugs": {
"url": "https://github.com/pashky/connect-fastcgi/issues"
},
"homepage": "https://github.com/pashky/connect-fastcgi",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"license": "ISC",
"readme": "# What\n\nconnect middleware to pass requests to FastCGI server process.\n\n# Why\n\nBecause PHP-FPM. Yes, that's right, it's insanity, but I need it, mainly\nfor development and automated testing tasks I do with grunt and simple\nnode.js scripts.\n\nThis module is a stripped down version of this\nhttps://github.com/davidcoallier/node-php server converted to connect\nmiddleware. It was then modified to support POST and PUT, pass\nrequired headers etc.\n\n# How\n\n```javascript\nvar connect = require('connect'), \n php = require('../connect-fastcgi');\n\nvar app = connect()\n .use('/php', php({ fastcgiPort: 8002, fastcgiHost: 'localhost', root: \"./php\" }))\n .use(connect.logger())\n .use(connect.static('./assets'))\n .listen(3000);\n```\n\nAvailable options:\n\n- `root:` root directory for scripts\n- `fastcgiHost:` host or socket path to FastCGI process\n- `fastcgiPort:` port\n\n# Thanks\n\n[David Coallier](https://github.com/davidcoallier) for original node-php module\n\n",
"readmeFilename": "README.md",
"gitHead": "8cd71ee640824e1a756e7ac0497b2f266f26400e",
"_id": "connect-yii@0.0.3",
"_shasum": "b78ba7f0ed1e24c9e680782aa29dfb99b41f1d05",
"_from": "node_modules/connect-yii"
}