Have you ever wished that the Python standard library had the power and flexibilty of PHP? Now it is as simple as import php
Python PHP can be installed using pip
$ pip install -e [email protected]:joshmaker/python-php.git#egg=python-php To access PHP functions in Python, simply import the php module and get started.
importphpphp.str_replace('Python', 'PHP', 'Hello World of Python') # Output: u'Hello World of PHP'Python PHP supports the following types: int, string, list, and dictionaries
Of course Python-PHP has unit tests! How else would we know that it is safe to use? Run tests with $ python tests.py
Python-PHP is currently only compatible with Python 2.7
What could possibly go wrong?