pccomponentes/coding-standard
PcComponentes Coding Standard adds PHP_CodeSniffer sniffs to enforce consistent PHP style. Install via Composer as a dev dependency and reference vendor/pccomponentes/coding-standard/src/ruleset.xml in your phpcs.xml(.dist) to apply the rules.
phpunit, robo, or CI/CD pipelines). It aligns with Laravel’s emphasis on maintainable, consistent code by enforcing additional custom sniffs beyond PSR-12.phpcs.xml.dist, making it easy to integrate without disrupting existing workflows. This is particularly useful for Laravel projects where custom naming conventions or business logic checks may be required.phpcs.xml.dist or other custom rulesets.phpcs --report=summary and consider parallelizing linting tasks if needed.phpunit, robo, or CI/CD pipelines (e.g., GitHub Actions, GitLab CI). Laravel projects already use PHP_CodeSniffer for linting, so this package is a natural extension.Assessment Phase:
phpcs with Laravel’s default rules to establish a baseline and identify existing violations../vendor/bin/phpcs --standard=pccomponentes app/
Pilot Phase:
PcComponentes.NamingConventions or PcComponentes.Commenting) in a dedicated feature branch.Full Rollout:
phpcs.xml.dist to include all desired sniffs from PcComponentes, overriding or extending Laravel’s default rules as needed.SquizLabs_PHP_CodeSniffer). Test edge cases like custom naming conventions for controllers or service providers.- name: Run PHPCS
run: ./vendor/bin/phpcs --standard=PcComponentes --warning-severity=3 app/
CONTRIBUTING.md section explaining how to customize or extend the ruleset.phpcs commands and improve developer productivity.php-parallel-lint.--ignore flag to temporarily exclude legacy code or modules during migration.phpcs.xml for known edge cases.composer.json to avoid unexpected updates.How can I help you explore Laravel packages today?