localheinz/composer-normalize
Normalize your composer.json consistently. localheinz/composer-normalize sorts keys, formats lists, and enforces a stable structure to reduce diffs and keep projects tidy. Works well in CI and pre-commit hooks for repeatable results.
composer.json formatting across teams, reducing merge conflicts and onboarding friction for new developers.Adopt if:
composer.json merge conflicts or formatting inconsistencies.Look elsewhere if:
composer.json is extremely complex (e.g., dynamic requirements) and normalization would break functionality.For Executives:
"This tool standardizes how we manage PHP dependencies—like auto-formatting for composer.json. It cuts down on merge conflicts, speeds up onboarding, and ensures consistency across our codebase. For the cost of a 10-minute setup, we’ll save hours weekly in developer time and reduce CI/CD failures. Think of it as ‘Prettier for Composer’—but for dependencies, not code."
For Engineering Leaders:
"localheinz/composer-normalize automates the tedious, opinionated parts of composer.json management: sorting packages, locking versions, and enforcing consistent formatting. It integrates seamlessly with your workflow—just run it pre-commit or in CI. No more arguing about dependency order or fixing formatting in PRs. Let’s pilot it on [Project X] to measure the impact on merge times and CI stability."
For Developers:
*"Tired of your PRs being rejected because composer.json isn’t sorted alphabetically? This tool does it for you automatically. It’ll:
composer normalize before committing, and boom—one less thing to worry about."*How can I help you explore Laravel packages today?