solido/php-coding-standards
Solido PHP coding standards meta-package: shared dev requirements for Solido suite tooling and analyzers (e.g., PHPStan, PHP_CodeSniffer). Use dev-master; no stable releases. Include as a dev dependency in all Solido PHP packages.
dev-master dependency, simplifying maintenance for monorepos or multi-package suites.phpstan.neon or .phpcs.xml) but may need custom exclusions for Laravel-specific patterns (e.g., dynamic properties, Artisan commands).dev-master introduces risk of breaking changes with Solido Suite updates. Mitigation: Pin to a specific commit hash in composer.json.max level) conflict with Laravel’s existing practices (e.g., dynamic properties, magic methods)?handle() methods, Facades) that need to be excluded from strict rules?composer require --dev solido/php-coding-standards:dev-master
Best Practice: Pin to a specific commit hash for stability:
"require-dev": {
"solido/php-coding-standards": "dev-master#a1b2c3d"
}
phpstan.neon to include Solido’s rules:
includes:
- vendor/solido/phpstan-rules/extension.neon
- vendor/kcs/phpstan-strict-rules/rules.neon
.phpcs.xml to use Solido’s standard:
<config name="standard" value="./vendor/solido/php-coding-standards"/>
- name: Run PHPCS
run: vendor/bin/phpcs --standard=./vendor/solido/php-coding-standards --report=full src/
- name: Run PHPStan
run: vendor/bin/phpstan analyse --level=max --error-format=github src/
- name: Security Check
run: vendor/bin/security-checker security:check
make:model). Add exclusions:
excludes:
- vendor/laravel/framework/src/Console/
arguments:
level: 8
rules:
PhpStan\Rules\PHPUnit\DynamicPropertyTestRule: false
dev-master (no semver stability). Mitigation:
composer.json.--memory-limit to optimize resource usage.max level).How can I help you explore Laravel packages today?