aik099/coding-standard
A reusable PHP_CodeSniffer coding standard used across aik099 projects. Compatible with PHPCS 3.x+, includes a PHPCS-compliant standard and test suite, and can be run via phpcs --standard=... against your source and tests or integrated into IDEs.
phpcs.xml or phpcs.xml.dist), this custom standard could be adopted to enforce stricter or project-specific rules (e.g., custom naming conventions, business logic constraints).phpunit, pest, laravel-pint) but does not replace them. Could be used alongside Laravel’s built-in phpcs rules or as a team-enforced standard.squizlabs/php_codesniffer).phpcs.xml rules by specifying this standard in phpcs commands.phpcs.xml entirely, or will we need to merge rules?squizlabs/php_codesniffer). This package extends that ecosystem.phpcs commands in workflows (e.g., GitHub Actions).composer exec phpcs or ./vendor/bin/phpcs.routes/web.php, Blade templates).phpcs.xml rules to determine overlap or gaps.phpcs.xml to reference this standard (or merge rules).squizlabs/php_codesniffer is ≥3.0 (Laravel projects typically meet this).phpcs --parallel).vendor/, node_modules/).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| PHPCS version incompatibility | Builds fail, no linting | Pin PHPCS version in composer.json |
| Custom rules break existing code | PRs blocked, developer frustration | Gradual enforcement + exceptions |
| Unmaintained package causes issues | Rules become obsolete | Fork and maintain internally |
| Slow CI execution | Flaky pipelines, delayed feedback | Parallel runs, caching, selective paths |
| Rule conflicts with Laravel updates | New Laravel features flagged | Update rules or whitelist exceptions |
composer exec phpcs --standard=/path/to/CodingStandard library tests
composer exec phpcs
How can I help you explore Laravel packages today?