brandembassy/coding-standard
Opinionated PHP coding standard ruleset for enforcing consistent code style across projects. Built on common tooling (e.g., PHP_CodeSniffer) to simplify linting in CI and local development, helping teams keep formatting and conventions uniform.
Adopt if:
Look elsewhere if:
Problem: "Our PHP 8.4 upgrade is stalled because static analysis tools (PHPStan, Rector) break on new syntax. Manual fixes add $Y/hour in dev time and delay feature releases."
Solution: *"brandembassy/coding-standard 14.8.1 now includes:
Ask: "Approve using this package in our PHP 8.4 migration pilot. Metrics: Track upgrade velocity and CI pass rates post-implementation."
Key Updates for PHP 8.4:
| Change | Impact |
|---|---|
| Rector fixes for 8.4 | Automatically handles match expressions, new attributes, etc. |
| Public repo workflow | No need to exclude Rector from CI for open-source projects. |
| Backward compatibility | Existing configs (PHPStan, PHP-CS-Fixer) remain unchanged. |
Updated Implementation Plan:
brandembassy/coding-standard:^14.8.1 to composer.json.GitHub Actions Snippet (PHP 8.4):
- run: vendor/bin/rector process src --dry-run --config=vendor/brandembassy/coding-standard/rector.php
- run: vendor/bin/phpstan analyse --level=5 --memory-limit=1G
Critical Metrics:
Risks & Mitigations:
--dry-run first; override via rector.php if needed.allowlist paths.How can I help you explore Laravel packages today?