Skip to content

Commit eece056

Browse files
committed
Update README.md
1 parent 7122245 commit eece056

File tree

2 files changed

+32
-8
lines changed

2 files changed

+32
-8
lines changed

README.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
# Json to PHP Array
22

3-
__将Json转为等价的PHP array表示__
3+
[中文](./README_CN.md)
4+
5+
__Convert Json to PHP array__
46

57
## Usage
68

7-
### 1. 使用可执行文件
9+
### 1. Run with the pre-built executable
810

9-
Release中提供了用pyinstaller打包的适用于macOS的可执行文件,直接下载即可使用
11+
Download executable from [the release page](https://github.com/walledata/json-to-php-array/releases), and run directly:
1012

1113
```shell
12-
# 查看帮助
14+
# check for help messages
1315
./json2array -h
1416
```
1517

16-
### 2. 源码运行
18+
### 2. Run with source
1719

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`

README_CN.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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表示

0 commit comments

Comments
 (0)