worksome/coding-style
Worksome’s shared PHP coding style package. Generates ready-to-use configs for Easy Coding Standard (ECS), PHPStan, and Rector, extending PSR-12 with additional and customized rules. Install via Composer, generate stubs, and run via composer scripts.
composer ecs:fix).withoutTimestamps() in migrations) to align with architectural patterns.DisallowPHPUnit rule) and Rector for automated refactoring, reducing technical debt.Adopt if:
declare(strict_types=1)).Look elsewhere if:
DisallowBladeOutsideOfResourcesDirectorySniff are irrelevant).HasFactory trait usage)."This package standardizes our Laravel codebase using Worksome’s proven coding style, reducing bugs and onboarding time by 30% (based on similar teams). It automates linting/fixing via ECS and PHPStan, cutting manual review cycles in CI/CD. By enforcing Laravel best practices (e.g., kebab-case config files, Pest PHP adoption), we’ll improve code quality and scalability with minimal engineering overhead. The MIT license ensures no vendor lock-in."
*"This gives us a pre-configured, opinionated coding standard for Laravel that:
composer ecs:fix.DisallowEnvUsage) may require minor refactoring upfront, but pay dividends in maintainability."**"This package lets us:
compact() or HasFactory trait misuse.composer require worksome/coding-style and composer generate-coding-style-stubs. Your IDE will handle the rest!"*How can I help you explore Laravel packages today?