php-collective/code-sniffer
PHP CodeSniffer rulesets from PhpCollective: PSR-2 compliant with many extra sniffs/fixers (incl. PSR-12) plus a stricter PhpCollectiveStrict standard. Install via Composer, configure phpcs.xml, run phpcs/phpcbf to check and auto-fix code style.
phpcbf) into CI/CD pipelines to reduce manual refactoring.PhpCollectiveStrict) enforces modern PHP practices (e.g., strict types, nullable hints), critical for large-scale projects.phpcs --parallel).Adopt if:
phpcbf) to reduce manual code reviews.Look elsewhere if:
"This package standardizes our PHP codebase to industry best practices (PSR-2/PSR-12) with PhpCollective’s stricter rules, reducing bugs and onboarding time. It automates compliance checks and fixes—saving dev hours in reviews and refactoring. For example, enforcing docblocks and type hints improves code clarity and IDE support, while strict mode future-proofs our tech stack. Minimal cost (MIT license) with high ROI in maintainability."
composer cs-fix to auto-format code—no more manual style debates. IDE integration (PHPStorm) gives real-time feedback."How can I help you explore Laravel packages today?