WSGI-to-PHP connector
Project description
This module allows you to run PHP processes inside of Python, using a WSGI gateway. This way PHP applications can appear like normal Python WSGI applications, and WSGI middleware routing and filters can all be applied in front of them. For instance, WSGI middleware-based authentication or authorization, routing, deployment, or styling filters (like WSGIOverlay).
You can use it like:
from wphp import PHPApp my_php_app = PHPApp('/path/to/php-files', php_options={'magic_quote_gpc': 'Off'})
And my_php_app will be a WSGI application you can embed in other Python applications.
Available in a Mercurial repository.