Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 816 Bytes

readme.md

File metadata and controls

30 lines (18 loc) · 816 Bytes

Syntax tree

Illustration:

How to install

Execute commands below:

git clone [email protected]:mnvx/syntax-tree.git
cd syntax-tree
composer install
cp src/api/Config/Configuration.php.tpl src/api/Config/Configuration.php

Edit configuration file: src/api/Config/Configuration.php

Set public path as root directory for web server.

How to use

Send POST request with next params.

curl -d text="Мама мыла раму." -d format="JSON" http://<host where syntax-tree installed>

You will achieve next result:

[{"number":"2","text":"\u043c\u044b\u043b\u0430","children":[{"number":"1","text":"\u041c\u0430\u043c\u0430","children":[]},{"number":"3","text":"\u0440\u0430\u043c\u0443.","children":[]}]}]