amphp/php-cs-fixer-config
Shared PHP-CS-Fixer configuration used across amphp projects. Install as a dev dependency, create a .php_cs.dist that returns Amp\CodeStyle\Config, configure the Finder paths and cache file, and run php-cs-fixer locally or in CI (e.g., Travis) for consistent styling.
Architecture fit: This package is a dev-only dependency for enforcing PHP CS Fixer rules aligned with AMP's standards. It fits well in PHP projects needing consistent code styling, especially those using AMP components. However, its AMP-specific rules (e.g., strict_types enforcement, nullable type declarations) may not align with non-AMP projects without customization. Integration is purely for development workflows, not runtime.
Integration feasibility: High for PHP 7.4+ projects using PHP CS Fixer v3.5+. Requires minimal setup (composer dependency + config file), but existing codebases will need remediation to comply with the rules. The 0 dependents metric suggests limited adoption outside AMP projects, which may indicate niche use cases or lack of community validation.
Technical risk: Low for new projects; moderate for legacy codebases with significant style violations. Key risks include:
Key questions:
nullable_type_declaration_for_default_null_value) align with our team’s standards?Stack fit: Ideal for PHP-centric stacks using Composer and modern CI/CD pipelines (e.g., GitHub Actions, Travis). Requires PHP CS Fixer as a dependency but no runtime changes. Not applicable for non-PHP components or monorepos with mixed languages.
Migration path:
composer require --dev amphp/php-cs-fixer-config.php_cs.dist using the provided template, adjusting paths to match project structure--dry-run) to quantify violationsCompatibility: Works with PHP CS Fixer v3.5+ and PHP 7.4+. Verify compatibility with existing tooling (e.g., IDE integrations). Note: The package’s strict_types
How can I help you explore Laravel packages today?