jakub-onderka/php-code-style
A PHP coding style toolkit for consistent formatting and style enforcement across projects. Helps standardize code layout and conventions, making reviews easier and reducing style-related noise in diffs for teams and CI pipelines.
composer require jakub-onderka/php-code-style), but no CI/CD hooks or Laravel-specific integrations (e.g., php-cs-fixer for Artisan commands).phpcs CLI) with no Laravel service provider or facade.snake_case vs. camelCase in controllers).create_function)?php-cs-fixer.phpcs CLI).phpcs on a sample Laravel project to identify rule conflicts.phpcs CLI task in CI (e.g., GitHub Actions).
- name: PHP Code Style
run: vendor/bin/phpcs --standard=JakubOnderka/PHP_Code_Style src/
php-cs-fixer for modern rules.
composer require friendsofphp/php-cs-fixer
./vendor/bin/php-cs-fixer fix --rules=@PSR12
php-cs-fixer.phpcs.xml or create a custom sniffer for Laravel-specific cases.composer require squizlabs/php_codesniffer).php-cs-fixer for modern code, this package for legacy).php-cs-fixer (actively maintained, PSR-12 compliant).phpcs can be slow on large codebases (no Laravel-specific optimizations).php-cs-fixer’s --parallel flag).snake_case migrations).| Scenario | Impact | Mitigation |
|---|---|---|
| PHP 8.x incompatibility | Build failures | Downgrade PHP or replace package |
| Rule conflicts | Manual overrides required | Custom phpcs.xml or hybrid tooling |
| CI/CD flakiness | False negatives/positives | Exclude problematic files |
| Abandonware risk | No security updates | Fork and maintain or replace |
phpcs.xml configuration tailored to Laravel.phpcs checks.composer require laravel/pint).How can I help you explore Laravel packages today?