php2py
php2py copied to clipboard
converter from php to python
Looks like phc might be dead...
Compiling PHC on modern version of Ubuntu / etc is difficult, so I made a Dockerfile that will build PHC on Ubuntu 14.04 and run php2py on an input file.
code tested: ``` ``` translated ``` #!/usr/bin/python #-*- coding: utf-8 -*- print("\n") class Foo: aMemberVar="aMemberVar Member Variable"0 aFuncName="aMemberFunc"0 def aMemberFunc(): print("Inside `aMemberFunc()`") foo = Foo() print(" \n") ``` Regards