Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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)

Release history Release notifications | RSS feed

This release

0.1dev-r5497 This release

0.1dev

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page