php-cs-fixer-py
PHP-CS-Fixer in Python — check and fix PHP code style through a typed API.
Python wrapper for PHP-CS-Fixer — no local PHP or Composer required.
Install
uv add php-cs-fixer-py
# or
pip install php-cs-fixer-py
Requires Python >= 3.10. See the distribution contents and PHP resolution policy.
Usage
from php_cs_fixer_py import Source, check, fix
source = Source.code("<?php $a = array(1,2);")
clean = fix(source, rules={"array_syntax": {"syntax": "short"}}).code
report = check(Source.code(clean), rules={"array_syntax": {"syntax": "short"}})
print(clean, report.compliant)
API
- Functions and
Fixer: callable specifications. Source: input construction and coercion.FixerConfig: configuration fields and defaults.FixResultandFileResult: result fields and projections.- Exceptions: error conditions and context.
Documentation
- Concepts: scope, relationships, and rationale.
- Design: class specifications and module structure.
- Implementation: library APIs and PHAR protocol.
For Agents
Agent-consumable documentation index at docs/llms.txt (llmstxt.org format).
License
GPL-2.0-only — see LICENSE.
Metadata
Release files for php-cs-fixer-py 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| php_cs_fixer_py-0.1.8-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for php_cs_fixer_py-0.1.8-py3-none-win_amd64.whl |
| php_cs_fixer_py-0.1.8-py3-none-manylinux_2_17_x86_64.musllinux_1_1_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64, Linux musl 1.1+ x86-64 | Details for php_cs_fixer_py-0.1.8-py3-none-manylinux_2_17_x86_64.musllinux_1_1_x86_64.whl |
| php_cs_fixer_py-0.1.8-py3-none-manylinux_2_17_aarch64.musllinux_1_1_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64, Linux musl 1.1+ ARM64 | Details for php_cs_fixer_py-0.1.8-py3-none-manylinux_2_17_aarch64.musllinux_1_1_aarch64.whl |
| php_cs_fixer_py-0.1.8-py3-none-macosx_11_0_x86_64.whl | Python 3 | none | macOS 11.0+ x86-64 | Details for php_cs_fixer_py-0.1.8-py3-none-macosx_11_0_x86_64.whl |
| php_cs_fixer_py-0.1.8-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for php_cs_fixer_py-0.1.8-py3-none-macosx_11_0_arm64.whl |
Total release size: 49.5 MB
Release files / php_cs_fixer_py-0.1.8-py3-none-win_amd64.whl
| Download URL | php_cs_fixer_py-0.1.8-py3-none-win_amd64.whl |
|---|---|
| Size | 10.1 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f1a17e3d4b1ded0323e21cac424cf51b0677a9d8a3154c7bf5b5b33cb2127c22
|
|
BLAKE2b-256 checksum How to use checksums |
54cc45f6acfd30b34d13f2e9643423947a032de1cf0e04542186a2f182fd0911
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / php_cs_fixer_py-0.1.8-py3-none-manylinux_2_17_x86_64.musllinux_1_1_x86_64.whl
| Download URL | php_cs_fixer_py-0.1.8-py3-none-manylinux_2_17_x86_64.musllinux_1_1_x86_64.whl |
|---|---|
| Size | 9.7 MB |
| Tags | Linux glibc 2.17+ x86-64 Linux musl 1.1+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
4709c7c52638e3240a9d6adea84dde3ebb8c6ce95525c86ddab3766487891165
|
|
BLAKE2b-256 checksum How to use checksums |
4890126f36285c3ea59fb20dbe0b7ee4ea04941622ea4f6f2b56ddaa75c24a3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / php_cs_fixer_py-0.1.8-py3-none-manylinux_2_17_aarch64.musllinux_1_1_aarch64.whl
| Download URL | php_cs_fixer_py-0.1.8-py3-none-manylinux_2_17_aarch64.musllinux_1_1_aarch64.whl |
|---|---|
| Size | 9.8 MB |
| Tags | Linux glibc 2.17+ ARM64 Linux musl 1.1+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
5f15ba67404f78841ec1e945be4e13710fd7496e7fe905f6eee9ccaf60bf648a
|
|
BLAKE2b-256 checksum How to use checksums |
cb273132f7cdb239018195b69dfd175e97a2fe98edb8739d854bf7d386a213a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / php_cs_fixer_py-0.1.8-py3-none-macosx_11_0_x86_64.whl
| Download URL | php_cs_fixer_py-0.1.8-py3-none-macosx_11_0_x86_64.whl |
|---|---|
| Size | 10.2 MB |
| Tags | Python 3 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
aaf75e7dce6f9043273121b435adebbd03f30f31f059b0e485b53324976e719b
|
|
BLAKE2b-256 checksum How to use checksums |
109197b316e8bae2ff033b1f4f8073d54c27c1127aa843b4069a75f5a24648fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / php_cs_fixer_py-0.1.8-py3-none-macosx_11_0_arm64.whl
| Download URL | php_cs_fixer_py-0.1.8-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 9.8 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
14646f376e4fa5bfc18bd840414c8df82fa59d340c3068e5abaf58f5f0eb000f
|
|
BLAKE2b-256 checksum How to use checksums |
c2c1da55afbff79c3cb9e5d9fabce70775b4234aed044ed195d6a3cec9f4a93e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for php-cs-fixer-py 0.1.8
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.