macOS
brew install php-cs-fixerlocal Homebrew formula metadata
安装
brew install php-cs-fixerlocal Homebrew formula metadata
sudo dnf install php-cs-fixerFedora Rawhide package metadata · php-cs-fixer · 来源: dl.fedoraproject.org
sudo zypper install php-cs-fixeropenSUSE Tumbleweed package metadata · php-cs-fixer · 来源: download.opensuse.org
概览
Tool to automatically fix PHP coding standards issues
历史
PHP CS Fixer is a command-line formatter and modernization tool that detects and rewrites PHP code to satisfy selected coding-style rules.
PHP CS Fixer grew in the Symfony ecosystem as an automated response to repetitive coding-style corrections. The official site credits Symfony creator Fabien Potencier and Dariusz Rumiński and carries Sensio Labs copyright dating from 2010 onward.
The project developed an extensive catalog of atomic fixers, named rule sets, dry-run and diff-oriented CI workflows, and migration rules for newer PHP and PHPUnit idioms. It is now maintained in the dedicated PHP-CS-Fixer GitHub organization.
PHP CS Fixer became a common Composer-era project tool: teams install it as a development dependency, commit a shared executable PHP configuration, and run checks or fixes locally and in continuous integration.
Support for PHP-FIG, Symfony, migration, and project-defined rule sets broadened its role from whitespace normalization to repeatable coding-style enforcement and opt-in source modernization.
Projects normally commit `.php-cs-fixer.dist.php` as shared configuration; an optional `.php-cs-fixer.php` supplies local overrides and takes precedence.
The `fix` command rewrites files, while `check` or dry-run/diff workflows enforce style in CI. Path selection, caching, parallel execution, and explicit risky-rule controls support both focused and repository-wide runs.
Its configuration is executable PHP, allowing projects to compose rules, file discovery, parallelism, risky-fixer policy, and environment-specific overrides in code.
The official documentation recommends project-local Composer installation so every contributor and CI job uses the version expected by the repository.
安全态势
没有找到 php-cs-fixer 的匹配本地密钥处理 manifest。软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
./.php-cs-fixer.php./.php-cs-fixer.dist.php可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
php-cs-fixer | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/PHP-CS-Fixer/PHP-CS-Fixer
安装元数据
| 软件包键 | brew:php-cs-fixer |
|---|---|
| 版本 | 3.95.27 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/php-cs-fixer |
| 主页 | https://cs.symfony.com/ |
| 仓库 | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer |
| 上游文档 | https://cs.symfony.com/ |
| 许可证 | MIT |
| 源码归档 | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/download/v3.95.27/php-cs-fixer.phar |
| 最后更新 | 2026-09-22T12:11:45Z |
| Pulse | updated |
| 依赖 | php |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | php-cs-fixer |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
php-cs-fixer 3.95.23-1.fc46
PHP Coding Standards Fixer
https://github.com/FriendsOfPHP/PHP-CS-Fixer
sudo dnf install php-cs-fixerphp-cs-fixer 3.13.0-1.8
PHP Coding Standards Fixer
sudo zypper install php-cs-fixer来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.