summaryrefslogtreecommitdiffstats
path: root/python/phply/README
blob: f99b80693ac05be876bdd4874a17bfe15738e606 (plain)
phply is a parser for the PHP programming language written using PLY, a
Lex/YACC-style parser generator toolkit for Python.

Included tools installed to /usr/bin:

phpshell.py - PHP interactive interpreter written in Python

php2json.py - Converts PHP to a JSON-based abstract syntax tree
Usage: php2json.py < input.php > output.json

php2python.py - Converts PHP to Python using unparse.py
Usage: php2python.py < input.php > output.py

php2jinja.py - Converts PHP to Jinja2 templates (experimental)
Usage: php2jinja.py < input.php > output.html