static-php-py
"static PHP for Python" — a single PHP binary wrapped behind one Python class.
Run PHP scripts through a binary supplied by a companion, a path, the system PATH, or a URL.
Install
Requires Python 3.10 or later.
pip install "static-php-py[bundled]"
Companion installation and its exact dependency relationship: distribution contract.
Usage
from static_php_py import PHP
php = PHP.bundled()
result = php.eval("echo PHP_VERSION;")
print(result.stdout if result.success else result.stderr)
API
- PHP acquisition: factories and cache location.
- Execution and inspection: methods, result types and execution errors.
- Requirements and PHP.require.
- PackagedBinary: consumer-carried archive resolver.
- Required Extension Set: extension-name semantics.
- Exception classes.
Documentation
Concepts, design index, and CI-to-wheel workflow.
For Agents
Agent-consumable documentation index at ../../docs/llms.txt (llmstxt.org format).
License
GPL-2.0 — see LICENSE. Pre-built binaries originate from static-php-cli.
Metadata
Release files for static-php-py 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| static_php_py-0.2.1.tar.gz | 80.4 kB | Without provenance | Details for static_php_py-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| static_php_py-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for static_php_py-0.2.1-py3-none-any.whl |
Total release size: 122.7 kB
Release files / static_php_py-0.2.1.tar.gz
| Download URL | static_php_py-0.2.1.tar.gz |
|---|---|
| Size | 80.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5e39e37a068f49a436285ff99c66cb3693e2f3e1212bbef047b620fa7deaed9
|
|
BLAKE2b-256 checksum How to use checksums |
40594a1cf836e7d8b799dcdab15a5da7c3abdb5e75caf29b0167dc574f22e3ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / static_php_py-0.2.1-py3-none-any.whl
| Download URL | static_php_py-0.2.1-py3-none-any.whl |
|---|---|
| Size | 42.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fadd7f284a036624092ddcd0783feae2a7e035d3e0923418b507e38a992834bb
|
|
BLAKE2b-256 checksum How to use checksums |
75ed5102b91f21ec17cbf00653ce7f959735203b38781c0efddac1851557f79e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for static-php-py 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.