# Install php-code-sniffer with Homebrew, dnf

Check coding standards in PHP, JavaScript and CSS. Version 4.0.1 via Homebrew; verified from local package data. Also installable with dnf: sudo dnf install php-pear-PHP-CodeSniffer.

## Install

```sh
sudo av install brew:php-code-sniffer
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install php-code-sniffer
```

  Evidence: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install php-pear-PHP-CodeSniffer
```

  Evidence: Fedora Rawhide package metadata: php-pear-PHP-CodeSniffer from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

## Package facts

- **Package key:** brew:php-code-sniffer
- **Package manager:** Homebrew
- **Version:** 4.0.1
- **Source summary:** Check coding standards in PHP, JavaScript and CSS
- **Homepage:** <https://github.com/PHPCSStandards/PHP_CodeSniffer>
- **Repository:** <https://github.com/PHPCSStandards/PHP_CodeSniffer>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- phpcbf (alias)
- phpcs (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 4.0.1

## Security Notes

escape, surveillance, or offensive capability signal.

- **Geiger risk:** red / medium
- escape, surveillance, or offensive capability signal


## 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

- Unix: ./.phpcs.xml, ./phpcs.xml, ./phpcs.xml.dist, ./ruleset.xml
## Other Package-Manager Records

- dnf - php-pear-PHP-CodeSniffer - 4.0.1-3.fc45: installed executable or alias match | Fedora Rawhide package metadata: php-pear-PHP-CodeSniffer from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | PHP coding standards enforcement tool | https://github.com/PHPCSStandards/PHP_CodeSniffer


## Combined YAML source

View the package source record on GitHub. [combined/php-code-sniffer.yml](https://github.com/mxcl/pkgdb/blob/main/combined/php-code-sniffer.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
