pkg.soopen package index

brew / rank 1407

Install php-cs-fixer with Homebrew, dnf, zypper

Tool to automatically fix PHP coding standards issues. Version 3.95.27 via Homebrew; verified 2026-09-22. Also installable with dnf: sudo dnf install php-cs-fixer.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install php-cs-fixer

local Homebrew formula metadata

Linux

Fedora dnfverified · 92%
sudo dnf install php-cs-fixer

Fedora Rawhide package metadata · php-cs-fixer · source: dl.fedoraproject.org

openSUSE zypperverified · 92%
sudo zypper install php-cs-fixer

openSUSE Tumbleweed package metadata · php-cs-fixer · source: download.opensuse.org

overview

Package summary

Tool to automatically fix PHP coding standards issues

Commands and aliases

  • php-cs-fixer

history

Project history and usage

PHP CS Fixer is a command-line formatter and modernization tool that detects and rewrites PHP code to satisfy selected coding-style rules.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2010: Sensio Labs' copyright history marks the beginning of the PHP CS Fixer project era.
  • 2010s: Composer-based project installation and configurable named rule sets become its standard workflow.
  • 2020s: The project is maintained under the dedicated PHP-CS-Fixer GitHub organization.

Related projects

  • PHP_CodeSniffer provides an alternative standards-checking architecture and includes the `phpcbf` automatic fixer.
  • Composer is the officially recommended way to install PHP CS Fixer as a direct project development dependency.

security posture

No protected-tool coverage found yet

No matching local secret-handling manifest was found for php-cs-fixer. Package metadata is still published here so future coverage has a stable package URL.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 1 platform targets.
  • Installs with 1 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
./.php-cs-fixer.php./.php-cs-fixer.dist.php

executables

Installed executables

CommandKindExposureNote
php-cs-fixercliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-11-04
manager version3.95.27
manager updated2026-09-22
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/PHP-CS-Fixer/PHP-CS-Fixer

install metadata

Package metadata

Package keybrew:php-cs-fixer
Version3.95.27
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/php-cs-fixer
Homepagehttps://cs.symfony.com/
Repositoryhttps://github.com/PHP-CS-Fixer/PHP-CS-Fixer
Upstream docshttps://cs.symfony.com/
LicenseMIT
Source archivehttps://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/download/v3.95.27/php-cs-fixer.phar
Last updated2026-09-22T12:11:45Z
Pulseupdated
Dependenciesphp
Bottleavailable (on all)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namephp-cs-fixer
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

dnf95%

php-cs-fixer 3.95.23-1.fc46

PHP Coding Standards Fixer

https://github.com/FriendsOfPHP/PHP-CS-Fixer

sudo dnf install php-cs-fixer
  • License: MIT AND BSD-3-Clause
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: php-cs-fixer
  • 7 dependencies
  • 4 provides
  • normalized package name match
  • Matched by: Php Cs Fixer
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: php-cs-fixer from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/652278618dec9c023176a80c435a32a2c8154869fb0eb662c267a54df28d77d9-primary.xml.zst
zypper95%

php-cs-fixer 3.13.0-1.8

PHP Coding Standards Fixer

https://cs.symfony.com/

sudo zypper install php-cs-fixer
  • License: MIT
  • Category: Development/Tools/Building
  • Architecture: noarch
  • Source Package: php-cs-fixer
  • 3 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Php Cs Fixer
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: php-cs-fixer from https://download.opensuse.org/tumbleweed/repo/oss/repodata/d310d5a96106e1e8872a385adf98aaa23be9db5d80937a6717314e7e7f37715065c6c748ab7ccee6475d620b46979c0fe64235fc0c46988e17edf659578fcf31-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation