php2py
php2py copied to clipboard
converter from php to python
[ php2py - converter from php to python using phc ]
php2py is a php script to convert php to python. As input, this script accept syntax tree XML file generated by phc instead of php code.
[ Requirements ]
php2py.php requires "phc" (php compiler) installed. you can download it at the following link:
http://www.phpcompiler.org/
[ Example Use ]
$ phc --dump-xml=ast somecode.php > out.xml $ ./php2py.php out.xml > somecode.py