# php-code-sniffer を Homebrew, dnf でインストール

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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:php-code-sniffer
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/php-code-sniffer>
- **バージョン:** 4.0.1
- **ソース概要:** Check coding standards in PHP, JavaScript and CSS
- **ホームページ:** <https://github.com/PHPCSStandards/PHP_CodeSniffer>
- **リポジトリ:** <https://github.com/PHPCSStandards/PHP_CodeSniffer>
- **ライセンス:** BSD-3-Clause
- **ソースアーカイブ:** <https://github.com/PHPCSStandards/PHP_CodeSniffer/releases/download/4.0.1/phpcs.phar>
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- phpcbf (cli)
- phpcs (cli)
- phpcbf (エイリアス)
- phpcs (エイリアス)

## 依存関係

- php

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 all

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 4.0.1
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/PHPCSStandards/PHP_CodeSniffer
- 情報: No package-manager update timestamp was available.
- 情報: No cached GitHub release or tag data was available.

## セキュリティノート

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
## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** php-code-sniffer
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 他のパッケージマネージャ記録

- 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | PHP coding standards enforcement tool | https://github.com/PHPCSStandards/PHP_CodeSniffer


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/ja/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [php](https://pkg.so/ja/brew/php/) - Runtime dependency declared by Homebrew.
- [precious](https://pkg.so/ja/brew/precious/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linting.
- [jslint4java](https://pkg.so/ja/brew/jslint4java/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linting.
- [prek](https://pkg.so/ja/brew/prek/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools.
- [php-cs-fixer](https://pkg.so/ja/brew/php-cs-fixer/) - Shares pkgdb curated category or tags: cli, code-quality, coding-standards, developer-tools, php.
- [jscpd](https://pkg.so/ja/brew/jscpd/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools.
- [pint](https://pkg.so/ja/brew/pint/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools.
- [codelimit](https://pkg.so/ja/brew/codelimit/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools.
- [hello](https://pkg.so/ja/brew/hello/) - Shares pkgdb curated category or tags: cli, coding-standards, developer-tools.
- [jslint](https://pkg.so/ja/npm/jslint/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, code-quality, developer, developer-tools.

## 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
- package-page enrichment
- curated configuration and credential file locations
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
