Directory Compare FCRS-1.0 About /llms.txt

phpcbf

$ phpcbf Community Low Risk
squizlabs · Files & Search · See Upstream · macos / linux · Reviewed:

phpcbf (phpcbf) — Fix violations detected by phpcs.. Verified across tldr-pages Corpus; included for structured shell automation under FCRS-1.0 baseline review.

FCRS-1.0 Score
70 /100
Usable w/ Caveats
Low Confidence
Zero-Friction Install
gh repo clone squizlabs/php_codesniffer
CLI vs MCP Decision CLI Only

Pure CLI utility (phpcbf); directly invoked in shell workflows without an equivalent MCP server layer.

At a Glance

Command
$ phpcbf
FCRS-1.0 Score
70/100 (Usable w/ Caveats)
Evidence Tier
Low Confidence
CLI vs MCP
CLI Only
Reviewed Date

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 15 / 25

Registry-verified CLI binary (phpcbf); inspect --help output before assuming structured JSON flags.

  • Indexed in tldr-pages Corpus
  • Command usage documented in tldr-pages
Trust & Safety 19 / 25

Classified as low risk based on files-search scope and upstream package metadata.

  • Install channel verified via gh repo clone squizlabs/php_codesniffer
  • Package checksum verified by upstream registry
Setup & Portability 11 / 15

Installable via gh repo clone squizlabs/php_codesniffer across macos, linux.

  • Primary install: gh repo clone squizlabs/php_codesniffer
Utility & Efficiency 11 / 15

Fix violations detected by phpcs.

  • Official homepage/source: https://github.com/squizlabs/PHP_CodeSniffer
Maintenance & Lineage 7 / 10

community lineage tool maintained by squizlabs.

  • Upstream repository: squizlabs/php_codesniffer
Docs & Verifiability 7 / 10

Upstream documentation linked at https://github.com/squizlabs/PHP_CodeSniffer; baseline FCRS cap applies until local probe runs.

  • https://github.com/squizlabs/PHP_CodeSniffer

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

Local execution tool; typically requires no external credentials unless targeting remote endpoints.

Side Effects
Read-Only Local Write
Cost & Quotas

Open-source / free local execution; zero API token or SaaS billing overhead from the binary itself.

Copyable Guardrail for CLAUDE.md / AGENTS.md
When invoking `phpcbf`, verify flags with `phpcbf --help` first, close stdin to avoid interactive prompts, and require confirmation before remote or destructive mutations.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect available subcommands & flags
phpcbf --help

Discover supported flags and subcommands for phpcbf before constructing automated calls.

Verify binary version & availability
phpcbf --version

Confirm phpcbf is installed and executable in PATH with zero side effects.

Strengths for Agents

  • + Indexed in tldr-pages Corpus with reproducible install via gh repo clone squizlabs/php_codesniffer
  • + Includes practical community usage examples in tldr-pages for phpcbf

Caveats & Pitfalls

  • ! Low-confidence baseline review: not yet locally probed on this host; run phpcbf --help to verify flags before scripting

Tested Agent Hosts

Follow Ecosystem Links

Related CLIs in Files & Search

View category hub →
phpcpd 70/100
$ phpcpd

A copy and paste detector for PHP code.

phploc 70/100
$ phploc

Quickly measure the size and analyzing the structure of a PHP project.

pfetch 70/100
$ pfetch

Display system information.

physlock 70/100
$ physlock

Lock all consoles and virtual terminals.

ripgrep 98/100
$ rg

Blazing-fast read-only codebase search with `--json` NDJSON streaming and automatic `.gitignore` respect.

fd 94/100
$ fd

Fast, user-friendly `find` alternative with automatic `.gitignore` filtering and `--color never` support.