Skip to content

Commit 8b888a4

Browse files
author
Ganesh K Bhat
committed
[phpcgijs] [docs] [feature] [improvement]\n\n1. Adding cgijs submodule as dependency.\n2. cgijs module has better architecture and more features to run php as well as other interpreted language scripts or other executables.\n3. Features of last cgijs commit.\n\ncgijs v1.1.0\n\nRun CGI Files. Run Multiple Protocol Proxies for local, remote, or embedded servers. Manage Processes, embedded servers, embedded databases, other embedded processes.\n\n\n[Rectified]: \n\nErrors of not exporting utils module export within the package\nCleaner testing of httpd, nginx, mysql, mongodb processes\nCleaner testing of json and os API's of utils module\n\n\n[Added]\n\nMajor changes to proxy module exports. proxy module now exports socks, udp, http, tcp, redirect API's\nAdded external packages to proxy module for support of proxies with UDP, TCP, SSH, FTP, Socks.\n\nAdded external package to proxy module for support of http to socks redirection\nAdded shelljs API to utils module in cgijs\n\n\n[TODO]:\n\nTo be tested with tomcat and Language inbuilt development servers. Next release will cover this.\nMerge all supported protocols (http, https, socks, udp, tcp) functioning into setup, start, stop, serve proxy API's within them, apart from present API's of process.process module exports. Next release will cover this.\nCleaner testing of csv, file API's of utils module. Next release will cover this.
1 parent e71ac43 commit 8b888a4

File tree

2 files changed

+142
-0
lines changed

2 files changed

+142
-0
lines changed

LICENSE

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ MIT License
22

33
Copyright (c) 2019 Ganesh Bhat <desktopcgi@gmail.com>
44

5+
56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal
78
in the Software without restriction, including without limitation the rights
@@ -20,3 +21,16 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2021
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2122
SOFTWARE.
2223

24+
25+
Credits and Dependant licensing:
26+
27+
- [node-php] Copyright (c) 2014-2016 Martin K. Schröder <mkschreder.uk@gmail.com>
28+
- [`PHPCGIJS`](https://www.npmjs.com/package/phpcgijs) was originally a fork of http://github.com/mkschreder/node-php.
29+
- [node-php package.json file](https://github.com/mkschreder/node-php/blob/1cf1ebb5c9d498232b3171305134eee95b401055/package.json)
30+
31+
- [`shelljs`](https://www.npmjs.com/package/shelljs)
32+
- ShellJS is a portable (Windows/Linux/OS X) implementation of Unix shell commands on top of the Node.js API. - https://www.npmjs.com/package/shelljs
33+
34+
- [http-proxy](https://www.npmjs.com/package/http-proxy)
35+
- node-http-proxy is an HTTP programmable proxying library that supports websockets. It is suitable for implementing components such as reverse proxies and load balancers. - https://www.npmjs.com/package/http-proxy
36+

package-node-php.json

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
{
2+
"name": "node-php",
3+
"description": "Node JS modules for running wordpress in node js. Can run and Execute PHP, JS, Ruby, Python 2, Python 3, ASPX, JSP, and CGI in CGI / Shell mode using node.js npm package / module. Includes cgijs npm module. `CGIJS` is a Nodejs Module/library to run any `CGI` mode/`Interpreted language script` files like PHP, JS, Ruby, Python 2, Python 3, ASPX, JSP, and CGI, OR connect to any protocol or any web application server proxies, OR manage processes in the system.",
4+
"version": "0.0.2",
5+
"author": {
6+
"name": "Martin K. Schröder",
7+
"email": "mkschreder.uk@gmail.com"
8+
},
9+
"contributors": [
10+
{
11+
"name": "Ganesh Bhat",
12+
"email": "desktopcgi@gmail.com"
13+
},
14+
{
15+
"name": "Martin K. Schröder",
16+
"email": "mkschreder.uk@gmail.com"
17+
}
18+
],
19+
"repository": {
20+
"type": "git",
21+
"url": "https://github.com/ganeshkbhat/node-php-cgi.git"
22+
},
23+
"scripts": {
24+
"start": "node ./server.js",
25+
"test": "mocha --reporter spec --recursive --config ./mocha.test.config.js"
26+
},
27+
"main": "./main.js",
28+
"exports": {
29+
"require": "./main.js",
30+
"import": "./main.mjs"
31+
},
32+
"dependencies": {
33+
"cgijs": "^1.1.0",
34+
"shelljs": "^0.8.5"
35+
},
36+
"devDependencies": {
37+
"chai": "^4.3.7",
38+
"eslint": "^8.28.0",
39+
"express": "^4.18.2",
40+
"mocha": "^10.1.0",
41+
"safe-regex": "^2.1.1",
42+
"sinon": "^14.0.2",
43+
"supertest": "^6.3.1",
44+
"unimported": "^1.23.0"
45+
},
46+
"license": "MIT",
47+
"engines": {
48+
"node": ">=8.0.0"
49+
},
50+
"keywords": [
51+
"phpcgijs",
52+
"node",
53+
"nodejs",
54+
"php",
55+
"cgi",
56+
"php-cgi",
57+
"run php script",
58+
"php cgi js",
59+
"cgijs",
60+
"run cgi scripts",
61+
"manage processes",
62+
"manage most(/any) protocol proxy(/proxies)",
63+
"node.js",
64+
"cgi",
65+
"php",
66+
"python",
67+
"ruby",
68+
"javascript",
69+
"perl",
70+
"php-cgi",
71+
"http proxy",
72+
"tcp proxy",
73+
"udp proxy",
74+
"websocket proxy",
75+
"socks proxy",
76+
"electron",
77+
"scripts",
78+
"run scripts",
79+
"cgi scripts",
80+
"run cgi mode scripts",
81+
"cgi py",
82+
"cgi rb",
83+
"cgi php",
84+
"cgi php-cgi",
85+
"cgi js",
86+
"cgi node.js",
87+
"cgi cgi",
88+
"run http proxy",
89+
"run tcp proxy",
90+
"run udp proxy",
91+
"run websocket proxy",
92+
"run socks proxy",
93+
"run cgi scripts using javascript",
94+
"run cgi scripts using js",
95+
"manage web servers",
96+
"web server",
97+
"run proxy to third party servers",
98+
"run proxy to third party cgi based servers",
99+
"node",
100+
"nodejs",
101+
"node js",
102+
"proxy",
103+
"proxy redirect",
104+
"any protocol proxies",
105+
"http",
106+
"https",
107+
"udp",
108+
"tcp",
109+
"ssh",
110+
"ftp",
111+
"socket",
112+
"websocket",
113+
"socks",
114+
"ssl",
115+
"node php bridge",
116+
"node php-cgi bridge",
117+
"node python bridge",
118+
"node cgi bridge",
119+
"node ruby bridge",
120+
"node perl bridge",
121+
"node jsp bridge",
122+
"node aspx bridge",
123+
"node asp bridge",
124+
"run",
125+
"execute",
126+
"cgi script"
127+
]
128+
}

0 commit comments

Comments
 (0)