iodigital-com/php-code-sniffer-standard
Extends PHP_CodeSniffer with iO Digital coding standards. Install via Composer, add an IO ruleset to your phpcs.xml, configure excluded paths and PHP version ranges, and run vendor/bin/phpcs. Includes guidance for properly ignoring sniff violations.
laravel-shift/php-code-sniffer-standard. The lack of documented Laravel-specific rules remains a critical gap.laravel-shift/php-code-sniffer-standard (more actively maintained, Laravel-focused).Squizlabs/PHP_CodeSniffer.phpcs (PSR-12).composer.lock fix (PR #25) suggests improved stability, but long-term viability remains uncertain..phpcs.xml to include this standard, risking conflicts with existing rules (e.g., PSR-12 brace placement vs. custom Laravel conventions).phpcs, but abandonment risk could break pipelines. The GitHub Actions update (PR #29) is a positive sign for maintainability.| Risk Area | Updated Assessment |
|---|---|
| Package Stability | Improved: Active contributions (2 new PRs in v29.5.0), PHP 8.5 support, and GitHub workflow updates. However, no clear roadmap or Laravel-specific documentation. |
| Rule Conflicts | Still risks overriding Laravel defaults (e.g., snake_case migrations). No evidence of Laravel-aware rules. |
| Dependency Bloat | Adds another standard to maintain; upgrade path unclear if the package stagnates. |
| False Positives | Undocumented rules may flag Laravel idioms (e.g., dynamic properties, magic methods). |
| Maintenance Burden | If abandoned, the team must fork or replace it. The composer.lock fix (PR #25) reduces some risk but doesn’t guarantee long-term support. |
laravel-shift/php-code-sniffer-standard or PSR-12?.phpcs.xml be gradually updated, or does it require a big-bang switch?snake_case in migrations while enforcing camelCase elsewhere?laravel-shift/php-code-sniffer-standard)?composer.lock fix (PR #25) reduces autoloader issues.phpcs (e.g., --standard=ioDigital).laravel-shift/php-code-sniffer-standard (Laravel-specific, actively maintained).Squizlabs/PHP_CodeSniffer.phpcs with this standard on a sample of Laravel code to identify false positives/negatives.laravel-shift/php-code-sniffer-standard.- name: PHP Code Sniffer (ioDigital Standard)
run: vendor/bin/phpcs --standard=ioDigital --warning-severity=0 src/ tests/
.phpcs.xml excludes for legacy code or Laravel-specific files (e.g., migrations).Squizlabs/PHP_CodeSniffer + Laravel rules).laravel-shift/php-code-sniffer-standard.| Component | Updated Compatibility Notes |
|---|---|
| Laravel Versions | Supports Laravel 10+ (PHP 8.5). Drops PHP 8.1 support (may break older Laravel 9 apps). |
| PHP Versions | PHP 8.5 required, 8.1+ unsupported. Verify team’s PHP version alignment. |
| Other Standards | May conflict with PSR-12 if rules overlap (e.g., brace placement, naming conventions). |
| Custom Sniffs | If the team uses existing Sniffs, this package could duplicate or override them. |
phpcs CLI).laravel-shift/php-code-sniffer-standard.HasFactory trait—why?"snake_case in migrations?"phpcs on large codebases (e.g., 50K+ lines) may slow CI.How can I help you explore Laravel packages today?