install-php-fixer

Solid

Install nette/coding-standard globally for PHP code style checking

AI & Automation 44 stars 5 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
55
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Install Nette Coding Standard Install the `nette/coding-standard` package globally for automatic PHP code style checking and fixing after supported edits. Use this skill only when explicitly requested. Run commands with the client's available shell tool and ask questions through its available question tool or chat. In Codex, the plugin's hooks must also be reviewed and trusted via `/hooks` before automatic fixing runs. Hooks cover Claude Code `Edit`/`Write` and Codex `apply_patch`, not edits made through shell commands. --- ## Step 0: Pre-flight Checks 1. **Check PHP availability** (requires PHP 8.0+) ```bash php --version ``` - If fails or version < 8.0: Stop and inform user. 2. **Check Composer availability** ```bash composer --version ``` - If fails: Stop and inform user to install Composer from https://getcomposer.org/ 3. **Detect existing installation** ```bash composer global show nette/coding-standard ``` - If already installed: Inform user and ask if they want to update (same install command updates to latest). --- ## Step 1: Installation 1. **Allow the required plugin** (needed for global installation) ```bash composer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true ``` 2. **Install the coding standard** ```bash composer global require nette/coding-standard ``` --- ## Step 2: Verification Run `ecs` from the Composer global bin directory to verify it works: ```bash #...

Details

Author
nette
Repository
nette/agent-plugins
Created
8 months ago
Last Updated
yesterday
Language
PHP
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Listed

php-coding-standards

Invoke BEFORE writing or modifying any PHP code. Provides coding standards and naming conventions for Nette repos: TABs, single quotes, strict_types, PSR-12 modifications, use statement ordering. Use this whenever creating, modifying, or refactoring any PHP code - even small bug fixes or one-line changes.

44 Updated yesterday
nette
AI & Automation Listed

php-auto-fixer

CRITICAL: Read BEFORE writing or modifying any PHP file. A PostToolUse hook automatically runs nette/coding-standard (ECS) on PHP files after Claude Code Edit/Write or Codex apply_patch (when hooks are enabled and trusted). The fixer removes unused `use` statements - so never add `use` statements in a separate edit before the code that references them. Always include `use` imports in the same edit as the referencing code, or add the code first then `use` statements. This skill should be used whenever creating new PHP files, editing existing PHP code, adding methods, refactoring, or fixing bugs in PHP - even for small one-line changes.

44 Updated yesterday
nette
Code & Development Listed

phpcs-standards

Set up or verify PHP_CodeSniffer on a Dockerized, Makefile-driven PHP project (Drupal or PSR-12), then bring the custom code to zero violations. Use when the user mentions phpcs, phpcbf, coding standards, "normes de codage", drupal/coder, DrupalPractice, PSR-12, a sniff, a ruleset / phpcs.xml, "FAILED TO FIX", or wants the custom modules cleaned up before a review or a major upgrade. Asks which standard (Drupal vs PSR-12) and which severity (errors only vs errors + warnings), fixes module by module, and records every behaviour-changing fix as a manual UAT step in the merge request. IMPORTANT: all commands MUST go through Makefile targets; phpcbf can discard every fix for a file silently, so a run is only clean when phpcs prints "No violations were found".

0 Updated 1 weeks ago
JMAILLY