Skip to content

Commit 2aa8219

Browse files
authored
readme
1 parent b0b3cb4 commit 2aa8219

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

readme.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
1-
Syntax tree
2-
===========
1+
# Syntax tree
32

43
Illustration:
54

65
![](http://storage4.static.itmages.com/i/16/0822/h_1471904775_1029147_56b293341e.png)
6+
7+
## How to install
8+
9+
Execute commands below:
10+
11+
```
12+
git clone git@github.com:mnvx/syntax-tree.git
13+
cd syntax-tree
14+
composer install
15+
cp src/api/Config/Configuration.php.tpl src/api/Config/Configuration.php
16+
```
17+
18+
Edit configuration file: `src/api/Config/Configuration.php`
19+
20+
Set `public` path as root directory for web server.
21+
22+
## How to use
23+
24+
Send POST request with next params.
25+
26+
`curl -d text="Мама мыла раму." -d format="JSON" http://<host where syntax-tree installed>`
27+
28+
You will achieve next result:
29+
30+
`[{"number":"2","text":"\u043c\u044b\u043b\u0430","children":[{"number":"1","text":"\u041c\u0430\u043c\u0430","children":[]},{"number":"3","text":"\u0440\u0430\u043c\u0443.","children":[]}]}]`

0 commit comments

Comments
 (0)