mnvx / syntax-tree
Syntax tree
v0.0.1
2016-08-25 22:15 UTC
Requires (Dev)
- mbostock/d3: ^3.5
- twitter/bootstrap: ^3.3
This package is auto-updated.
Last update: 2024-12-21 02:05:19 UTC
README
Illustration:
How to install
Execute commands below:
git clone git@github.com: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":[]}]}]