var-lab/coding-standard
A shared coding standard for Laravel and PHP projects, providing opinionated, ready-to-use rules for PHP-CS-Fixer and PHP_CodeSniffer so teams can enforce consistent formatting and style across codebases with minimal configuration.
What this package is: A shared PHP coding-standard definition (typically PHP_CodeSniffer rulesets and/or PHP-CS-Fixer/Pint rule sets, possibly with Rector and PHPStan config) distributed as a Composer package for PHP and Symfony projects. It is a development-time tooling dependency only — no runtime footprint, no autoloaded production code, no service-provider registration expected.
Architecture fit:
require-dev Composer dependency; zero impact on production artifact size or bootstrap.Integration feasibility:
composer require --dev, publish/point to the ruleset, wire a composer cs-check script into CI.git.var-lab.com), so every consuming repo and CI runner needs a repositories entry plus credentials (Composer auth token / SSH deploy key). This is a one-time but non-trivial setup and an ongoing secret-rotation obligation.Technical risk:
composer install in every consuming pipeline unless artifacts are mirrored (Satis, Composer proxy, or a Packagist-style internal registry).Key questions:
Stack fit:
require-dev, expose composer cs / composer cs:fix scripts, run in the existing CI lint stage. No application code changes required.Migration path:
Compatibility:
composer.lock.phpcs.xml <rule ref="...">) rather than requiring a custom binary.Sequencing:
Maintenance:
Support:
Scaling:
--parallel) and cache the Composer/tool layer to keep lint stages under a couple of minutes.Failure modes:
composer update.Ramp-up:
How can I help you explore Laravel packages today?