ergebnis/composer-normalize
Composer plugin to normalize composer.json automatically: consistent key ordering, formatting, and sorting of dependencies. Avoid manual formatting debates and keep projects tidy across teams and CI with a simple dev requirement and allow-plugins setting.
composer.json files across a Laravel/PHP codebase to enforce consistency in dependency management, reducing merge conflicts and human error.composer.json formatting (e.g., unsorted dependencies triggering false-positive diffs).composer.json as a critical artifact.Adopt if:
composer.json files in PRs.composer require/update workflows).Look elsewhere if:
composer.json structures (e.g., highly customized schemas).php-cs-fixer) that handles this via alternative methods."This is a low-effort, high-impact tool to eliminate a common source of technical debt in our PHP/Laravel projects. By standardizing composer.json files—sorting dependencies, normalizing formatting, and reducing merge conflicts—we’ll cut down on CI/CD noise, accelerate onboarding, and improve codebase consistency. It’s like a spellcheck for our dependency management, with zero upfront cost and minimal maintenance. Teams using this see 20–30% fewer flaky PRs and faster merges."
Ask: "Would you prioritize reducing friction in dependency management to improve developer velocity?"
*"This Composer plugin automates the tedious, error-prone task of manually sorting and formatting composer.json files. Key benefits:
require, require-dev, config grouped alphabetically).composer install/update)..composer-normalize.json).composer.json during development.Use case: Add it to our monorepo’s composer.json and enforce it via Git hooks or CI. Example config:
{
"sort-order": ["require", "require-dev", "config"],
"normalize-dev-dependencies": true
}
Impact: Less time arguing about dependency order, more time shipping features."*
Ask: "Should we adopt this as a team standard for all new/updated Laravel projects?"
How can I help you explore Laravel packages today?