Skip to content

Files

Latest commit

 

History

History
30 lines (19 loc) · 426 Bytes

File metadata and controls

30 lines (19 loc) · 426 Bytes

parser.php

Simple I/O wrapper over the PHP-Parser library.

Installation

PHP Parser relies on composer:

composer install

Usage

Pass a string of PHP on stdin, get a JSON AST on stdout.

$ cat test/test.php | php parser.php

Running Tests

There is a simple smoke test which asserts that the above example works as expected.

$ ./test/run
PASS