Skip to main content

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 Subversion repository, or installation with easy_install wphp==dev. (No formal release has been made yet)

Project details


Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page