./vendor/bin/php-cs-fixer fix).php_cs config generation, caching), which could be redundant if Laravel already has a preferred workflow.composer-config-plugin) and doesn’t modify Laravel core files. Integration would require:
php-cs-fixer as a dev dependency)..php_cs config generation might override Laravel’s existing .php-cs-fixer.dist.php or Pint config..php_cs.cache) could conflict with Laravel’s caching layers (e.g., file-based caches in storage/).hiqdev/composer-extension-plugin (unmaintained).Why HiDev?
Configuration Conflicts
.php_cs config interact with Laravel’s existing code style tools (e.g., Pint, PSR-12)?.php_cs.cache) interfere with Laravel’s file watchers or deployments?Long-Term Viability
Performance Impact
Team Adoption
| Component | Version Support | Risk Level |
|---|---|---|
| PHP-CS-Fixer | v2 (outdated) | High |
| HiDev | Unknown (2017 API) | High |
| Laravel | No native integration | Medium |
| Composer Plugins | composer-config-plugin |
Medium |
.php_cs config generation against Laravel’s baseline rules.// app/Console/Commands/FixCode.php
use Symfony\Component\Process\Process;
protected function handle() {
$process = new Process(['php-cs-fixer', 'fix', '--config=.php_cs']);
$process->run();
}
deptrac/php-cs-fixer-bundle (Symfony/Laravel).composer require hiqdev/hidev.composer require friendsofphp/php-cs-fixer --dev.composer.json:
"extra": {
"hidev": {
"plugins": {
"hiqdev/hidev-php-cs-fixer": {}
}
}
}
.php_cs via HiDev (if desired)..php_cs to align with Laravel’s PSR-12 rules../vendor/bin/hidev php-cs-fixer.- name: PHP-CS-Fixer (HiDev)
run: vendor/bin/hidev php-cs-fixer
friendsofphp/php-cs-fixer:^3.0)..php_cs template to use modern rulesets.composer-config-plugin docs for migration guides..php_cs.cache from Git/Laravel’s file watchers.--no-cache flag if HiDev’s cache causes issues.--verbose to isolate HiDev vs. PHP-CS-Fixer logs../vendor/bin/php-cs-fixer fix) to rule out HiDev issues..hidev/config.yml for misconfigurations..php_cs.cache) could speed up repeated runs but may bloat storage.How can I help you explore Laravel packages today?