Skip to content

Commit 1a678b5

Browse files
committed
Merge branch 'master' of https://github.com/phptool/php.js
2 parents e0a3797 + e36bbe3 commit 1a678b5

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# php.js
2+
采用 locutus 生成浏览器可引入 php.js
3+
4+
#### 生成方式
5+
6+
采用 browserify 对 locutus 进行生成浏览器端可执行 php.js 文件
7+
8+
引入 [locutus](https://github.com/kvz/locutus)
9+
```
10+
npm install locutus
11+
```
12+
13+
引入全局 [browserify](http://browserify.org/)
14+
```
15+
npm install -g browserify
16+
```
17+
18+
修改 construct.js 文件
19+
···
20+
browserify construct.js -o php.js
21+
···
22+
23+
#### 注意事项
24+
25+
var 类进行调整为 php_var
26+
27+
array 类属于保留关键字,可根据自身需要重新编译新引入名

0 commit comments

Comments
 (0)