Help us improve
Share bugs, ideas, or general feedback.
From php-fixer
Installs nette/coding-standard globally via Composer for PHP code style checking and automatic fixing via the fix-php-style hook. Requires PHP 8.0+.
npx claudepluginhub nette/claude-code --plugin php-fixerHow this skill is triggered — by the user, by Claude, or both
Slash command
/php-fixer:install-php-fixerThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Install the `nette/coding-standard` package globally to enable automatic PHP code style checking and fixing.
Provides Nette-specific PHP coding standards including TAB indentation, single quotes, strict_types=1, PSR-12 modifications, and use statement ordering. Invoke before writing, modifying, or refactoring any PHP code.
Automatically runs nette/coding-standard (ECS) on PHP files after every Edit/Write, fixing formatting and removing unused use statements. Essential for all PHP creation, editing, refactoring, or bug fixes to avoid import issues.
Automatically checks code against PHPCS, ESLint, WordPress Coding Standards, or Drupal Coding Standards. Useful for code style and standards compliance questions.
Share bugs, ideas, or general feedback.
Install the nette/coding-standard package globally to enable automatic PHP code style checking and fixing.
Check PHP availability (requires PHP 8.0+)
php --version
Check Composer availability
composer --version
Detect existing installation
composer global show nette/coding-standard 2>/dev/null
Allow the required plugin (needed for global installation)
composer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
Install the coding standard
composer global require nette/coding-standard
Run ecs from the Composer global bin directory to verify it works:
# Unix
$(composer global config home)/vendor/bin/ecs --version
# Windows
php "$(composer global config home)/vendor/bin/ecs" --version
The fix-php-style hook finds ecs automatically in the Composer home directory – PATH configuration is not needed.
If verification succeeds, confirm to the user that Nette Coding Standard is installed and the fix-php-style hook will automatically fix code style after editing PHP files.
Check if gh CLI is available
gh --version
If gh is available, use AskUserQuestion:
Only if user explicitly says yes, run:
gh api -X PUT /user/starred/nette/coding-standard
gh api -X PUT /user/starred/nette/claude-code
sudo chown -R $(whoami) "$(composer global config home)"