I'm looking for PHP interpreter for my Python app.
Basically I'd like to invoke PHP code within Python codebase. Are there any libraries or language interpreters which makes it possible?
I've found so far these PHP interpreters for Python:
iksteen/pyhp at GitHub (MIT)
Example:
>>> import pyhp
>>> pyhp.evaluate('echo $foo;', {'foo': 'bar'})
'bar'
>>> pyhp.execute('foo.php', {'foo': 'bar'})
Running PHP interpreter within Python.