instaclick/symfony2-coding-standard
PHP_CodeSniffer ruleset for enforcing the Symfony2 Coding Standard in PHP projects. Helps keep formatting and conventions consistent across teams and CI, with ready-to-use sniffs and easy integration into existing development workflows.
Symfony2\Components\*), which may conflict with Laravel’s conventions (e.g., Facades, Blade templates, Eloquent).phpcs or laravel-pint). Adding this standard is feasible but requires:
composer require --dev instaclick/symfony2-coding-standard.phpcs.xml to include/exclude rules (e.g., ignore Symfony2-specific checks).phpcs in pre-commit hooks.Symfony\Component\DependencyInjection\*) may flag Laravel’s service container or Facades.laravel-shift/blueprint).Why This Over Alternatives?
phpcs-fixer, or laravel-shift/blueprint?Compatibility Validation
app/, config/, or resources/ conventions?Maintenance Plan
Impact Assessment
app/Providers/AppServiceProvider)?Tooling Integration
phpcs/pint setups?phpcs, pint, psalm).phpcs with the new standard on a sample of the codebase to identify conflicts/false positives.phpcs.xml to include the standard:
<config name="instaclick/symfony2-coding-standard" />
<exclude-pattern>*/Symfony2/*</exclude-pattern>
composer.json dev dependencies:
"require-dev": {
"instaclick/symfony2-coding-standard": "^1.0"
}
Facade::class), Blade templates (@directive), or Eloquent models.app/Providers/EventServiceProvider).squizlabs/php_codesniffer).phpcs or php-cs-fixer.Symfony\Component\*).phpcs/pint configurations are shared across the team.vendor/, storage/) to mitigate.Route::get() vs. Symfony’s Router).CONTRIBUTING.md or DEVELOPMENT.md with linting guidelines.How can I help you explore Laravel packages today?