# 使用 Homebrew, dnf 安装 php-code-sniffer

查看 php-code-sniffer 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

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

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

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

  证据: 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

## 软件包事实

- **软件包键:** brew:php-code-sniffer
- **软件包管理器:** Homebrew
- **版本:** 4.0.1
- **来源摘要:** Check coding standards in PHP, JavaScript and CSS
- **主页:** <https://github.com/PHPCSStandards/PHP_CodeSniffer>
- **仓库:** <https://github.com/PHPCSStandards/PHP_CodeSniffer>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- phpcbf (别名)
- phpcs (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 4.0.1

## 安全说明

escape, surveillance, or offensive capability signal.

- **Geiger 风险:** red / 中
- 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
## 其他软件包管理器记录

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


## 来源

- 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
