chadicus/coding-standard
A PHP coding standard package for enforcing consistent code style across projects, built around PHP_CodeSniffer rules. Useful for teams wanting shared conventions in Laravel or general PHP codebases, though adoption is minimal.
composer require --dev chadicus/coding-standard.vendor/bin/phpcs -i. The package registers a standard (commonly referenced in rulesets as Chadicus; confirm the exact name from phpcs -i).phpcs.xml and start with a narrow scope:
<?xml version="1.0"?>
<ruleset name="Laravel App">
<description>Project coding standard</description>
<file>app</file>
<file>tests</file>
<arg name="extensions" value="php"/>
<arg name="colors"/>
<rule ref="Chadicus"/>
</ruleset>
vendor/bin/phpcs on app/ only to establish a baseline. Fix automatically with vendor/bin/phpcbf, then review the diff before widening scope to tests/ and other directories.composer dump-autoload and re-check phpcs -i; PHPCS 3.6+ auto-discovers standards installed via Composer."scripts": {
"lint": "phpcs",
"lint:fix": "phpcbf"
}
Then composer lint locally and in CI.- run: composer install --no-interaction --prefer-dist
- run: vendor/bin/phpcs --report=checkstyle --report-file=phpcs.xml
Use --report=summary for human-readable CI logs and --report=checkstyle for annotations.vendor/bin/phpcs and set the standard path to vendor/chadicus/coding-standard (or the registered standard name). Enable “Show sniff name” so failures map to actionable rules.<rule ref="Chadicus"/>
<rule ref="Chadicus">
<exclude name="Some.Sniff.Code"/>
</rule>
bootstrap/cache, storage, vendor, and any generated migration or IDE helper files.--ignore=* plus explicit <file> entries, or maintain a baseline via --report=summary and fail CI only on new violations in the changed-file set.absoluteNestingLevel property name. If your custom ruleset or sniff configuration referenced that property (especially with the old/incorrect spelling), re-check it after upgrading. A property that was previously ignored may now take effect and surface new violations. Run vendor/bin/phpcs across the codebase after the bump and review the diff rather than assuming a patch release is behavior-neutral.vendor/bin/phpcs -e (lists sniffs) and -s (shows sniff codes in reports).--cache path.installed_paths is stale. composer dump-autoload and phpcs -i are the first debugging steps.phpcbf safety: Always run auto-fixers on a clean Git working tree. Review phpcbf output before committing; some sniffs make non-trivial structural changes.<exclude-pattern> for generated code and <rule ref="..."><properties> for per-project sniff tuning.-v, -s, and --report=source to identify which sniff and property produced a violation before changing code or configuration.How can I help you explore Laravel packages today?