Simple I/O wrapper over the PHP-Parser library.
PHP Parser relies on composer:
composer install
Pass a string of PHP on stdin
, get a JSON AST on stdout
.
$ cat test/test.php | php parser.php
There is a simple smoke test which asserts that the above example works as expected.
$ ./test/run
PASS