pkg.soopen package index

brew / Rang 3320

php-code-sniffer mit Homebrew, dnf installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für php-code-sniffer in AI-Agent-Workflows.

Installation

Weitere Installationsbefehle

macOS

Homebrewverifiziert · 100%
brew install php-code-sniffer

local Homebrew formula metadata

Linux

Fedora dnfverifiziert · 92%
sudo dnf install php-pear-PHP-CodeSniffer

Fedora Rawhide package metadata · php-pear-PHP-CodeSniffer · Quelle: dl.fedoraproject.org

Überblick

Paketzusammenfassung

Check coding standards in PHP, JavaScript and CSS

Befehle und Aliase

  • phpcbf
  • phpcs

Verlauf

Projektgeschichte und Nutzung

PHP_CodeSniffer is an extensible command-line linter and fixer that tokenizes source files and checks them against defined coding standards.

Projektgeschichte

PHP_CodeSniffer originated at Squiz as a tokenizer-based coding-standard checker and fixer. It developed built-in standards, an extensible sniff architecture, machine-readable reports, and project rulesets.

Maintenance subsequently continued under the PHPCSStandards organization, whose official repository explicitly identifies the project as the continuation of the abandoned Squizlabs package.

Adoptionsgeschichte

PHP_CodeSniffer became a standard PHP development tool because coding policies can be represented as reusable standards and project rulesets, then applied consistently from terminals, editors, hooks, and continuous-integration jobs.

The PHPCSStandards repository describes itself as the official continuation of the package created by Squizlabs. It retains the established Composer package and the long-standing `phpcs` and `phpcbf` commands.

Wie es verwendet wird

Run `phpcs` against files or directories to report coding-standard violations, selecting a built-in, external, or project-defined standard as needed.

Run `phpcbf` to repair fixable violations. When no standard is supplied, PHP_CodeSniffer searches the current directory and its parents for `.phpcs.xml`, `phpcs.xml`, `.phpcs.xml.dist`, or `phpcs.xml.dist`, in that precedence order.

Warum Paket-Nerds sich dafür interessieren

The package supplies two complementary executables: `phpcs` reports violations, while `phpcbf` automatically corrects violations for which a safe fixer exists.

Its discoverable project rulesets and installable external standards let one engine enforce PHP-FIG, framework, organization, or repository-specific conventions.

Zeitleiste

  • 2000s: PHP_CodeSniffer begins in the Squiz ecosystem.
  • 2010s: Composer installation and project rulesets become established distribution and configuration workflows.
  • 2020s: PHPCSStandards becomes the official continuation of the Squizlabs project.

Related projects

  • PHP CS Fixer overlaps with PHP_CodeSniffer's automatic-repair workflow but is centered on configurable source rewriting.
  • Composer is an officially documented installation method for both global and project-local PHP_CodeSniffer use.

Sicherheitslage

Risikostufe: red

escape, surveillance, or offensive capability signal.

Risikoklassifikator

red Risiko · mittel Konfidenz · escape-surveillance-offensive

Warum

  • escape, surveillance, or offensive capability signal

Signale

  • text:sniffer

Installationsverhalten

  • In den Formelmetadaten ist kein Homebrew-Post-install-Hook erfasst.
  • Homebrew-Bottle-Metadaten sind für 1 Plattformziele verfügbar.
  • Installiert mit 1 Laufzeitabhängigkeiten.

Empfohlene Prüfung

Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.

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
./.phpcs.xml./phpcs.xml./phpcs.xml.dist./ruleset.xml

Executables

Installierte Executables

BefehlArtSichtbarkeitHinweis
phpcbfcliglobales Executable
phpcscliglobales Executable

Aktualität

Version und Aktualität

Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.

Seite generiert2026-11-04
Manager-Version4.0.4
Manager aktualisiert2026-10-06
lokale DatenOK
Upstreamnot checked
neueste erkannte Versionnicht erkannt

https://github.com/PHPCSStandards/PHP_CodeSniffer

Installationsmetadaten

Paketmetadaten

Paketschlüsselbrew:php-code-sniffer
Version4.0.4
PaketmanagerHomebrew
Paketmanager-Seitehttps://formulae.brew.sh/formula/php-code-sniffer
Homepagehttps://github.com/PHPCSStandards/PHP_CodeSniffer
Repositoryhttps://github.com/PHPCSStandards/PHP_CodeSniffer
LizenzBSD-3-Clause
Quellarchivhttps://github.com/PHPCSStandards/PHP_CodeSniffer/releases/download/4.0.4/phpcs.phar
Zuletzt aktualisiert2026-10-06T14:42:33+03:00
Pulseupdated
Abhängigkeitenphp
Bottleverfügbar (auf all)
Homebrew post-installnicht definiert
Dienstkeiner deklariert

Registry-Fakten

Details aus der Quelldatenbank

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

Source-Datenbank-Treffer

Andere Paketmanager-Einträge

Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.

dnf92%

php-pear-PHP-CodeSniffer 4.0.4-1.fc45

PHP coding standards enforcement tool

https://github.com/PHPCSStandards/PHP_CodeSniffer

sudo dnf install php-pear-PHP-CodeSniffer
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: php-pear-PHP-CodeSniffer
  • 8 Abhängigkeiten
  • 4 stellt bereit
  • installed executable or alias match
  • Abgeglichen nach: Phpcs
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: php-pear-PHP-CodeSniffer from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/652278618dec9c023176a80c435a32a2c8154869fb0eb662c267a54df28d77d9-primary.xml.zst

Quellspur

Aus Repository-Daten generiert

Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.

Verwendete Quellen

  • 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