mnvx / syntax-tree
Syntax tree
Installs: 537
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 4
Forks: 4
Open Issues: 0
pkg:composer/mnvx/syntax-tree
Requires (Dev)
- mbostock/d3: ^3.5
- twitter/bootstrap: ^3.3
This package is auto-updated.
Last update: 2025-09-21 03:39:29 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":[]}]}]