chameleon-system/code-style-config
Shared code style configuration for the Chameleon System PHP/Laravel ecosystem. Provides standardized formatting and linting rules (e.g., PHP-CS-Fixer/Pint setups) to keep multiple projects consistent, reduce review noise, and enforce team conventions.
php artisan make:controller follows PSR-12 by default)..php-cs-fixer.dist.php) unless it offers Laravel-specific rules (e.g., blade template styling, facade naming conventions)..php-cs-fixer.dist.php or similar).snake_case for facades when Laravel’s StudlyCase is preferred).Route::resource() naming) as violations.app() helper usage)..blade.php).Cache::store('redis')->get())?php-cs-fixer or pint pipelines (e.g., GitHub Actions, GitLab CI)../vendor/bin/php-cs-fixer fix.composer require --dev chameleon-system/code-style-config
.php-cs-fixer.dist.php (or equivalent) to include the package’s rules.php-cs-fixer config..php-cs-fixer.dist.php.| Step | Action | Owner | Dependencies |
|---|---|---|---|
| 1 | Evaluate rule set against Laravel conventions | TPM + Dev Lead | - |
| 2 | Install package in dev environment | Backend Engineer | Composer access |
| 3 | Test on a sample PR to check for false positives | QA Engineer | CI pipeline |
| 4 | Integrate into CI/CD (fail builds on violations) | DevOps | CI access |
| 5 | Document exceptions (if any) | TPM | - |
| 6 | Monitor adoption and feedback | TPM | Analytics |
composer.json.app()->make() in favor of new).| Risk | Impact | Mitigation |
|---|---|---|
| Package abandonment | Rules break with PHP/Laravel updates | Use as a temporary stopgap; migrate to Pint or custom config. |
| Overly strict rules | Blocks legitimate Laravel patterns | Whitelist exceptions in config. |
| CI pipeline failures | Slows down releases | Run in parallel with other checks; cache results. |
| Rule conflicts | Merge conflicts due to style changes | Enforce pre-commit hooks to catch issues early. |
| Blade template issues | Misses critical files | Extend config to include .blade.php. |
How can I help you explore Laravel packages today?