File tree 2 files changed +32
-8
lines changed
2 files changed +32
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Json to PHP Array
2
2
3
- __ 将Json转为等价的PHP array表示__
3
+ [ 中文] ( ./README_CN.md )
4
+
5
+ __ Convert Json to PHP array__
4
6
5
7
## Usage
6
8
7
- ### 1. 使用可执行文件
9
+ ### 1. Run with the pre-built executable
8
10
9
- Release中提供了用pyinstaller打包的适用于macOS的可执行文件,直接下载即可使用
11
+ Download executable from [ the release page ] ( https://github.com/walledata/json-to-php-array/releases ) , and run directly:
10
12
11
13
``` shell
12
- # 查看帮助
14
+ # check for help messages
13
15
./json2array -h
14
16
```
15
17
16
- ### 2. 源码运行
18
+ ### 2. Run with source
17
19
18
- 1 . 安装Python3,此项目仅使用了Python标准库,所以无需安装依赖
19
- 2 . 在当前目录新建文件 ` input.json ` ,向其中写入要转换json
20
- 3 . 执行 ` python3 main.py ` ,即可打印出输入json对应的PHP array表示
20
+ 1 . Install python3. No third-party dependency needs to be installed, because only python standard libs were used in this program
21
+ 2 . Create a file named ` input.json ` , and write json into it
22
+ 3 . Run ` python3 main.py `
Original file line number Diff line number Diff line change
1
+ # Json to PHP Array
2
+
3
+ [ English] ( ./README.md )
4
+
5
+ __ 将Json转为等价的PHP array表示__
6
+
7
+ ## Usage
8
+
9
+ ### 1. 使用可执行文件
10
+
11
+ [ Release page] ( https://github.com/walledata/json-to-php-array/releases ) 中提供了可执行文件,直接下载即可使用
12
+
13
+ ``` shell
14
+ # 查看帮助
15
+ ./json2array -h
16
+ ```
17
+
18
+ ### 2. 源码运行
19
+
20
+ 1 . 安装Python3,此项目仅使用了Python标准库,所以无需安装依赖
21
+ 2 . 在当前目录新建文件` input.json ` ,向其中写入要转换json
22
+ 3 . 执行` python3 main.py ` ,即可打印出输入json对应的PHP array表示
You can’t perform that action at this time.
0 commit comments