
composer-normalize
๐ต Provides a composer plugin for normalizing composer.json.
The Lens
By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.
Updated Nov 2026
composer-normalize ends the formatting arguments over composer.json, the file that lists a PHP project's dependencies. Run composer normalize and it rewrites the file into a consistent structure and order, then updates the hash in composer.lock so Composer doesn't complain. Composer plugin or standalone phar, MIT, free.
Setup is two commands: require it as a dev dependency, then add it to Composer's allow-plugins list. The real value is CI. Run it with --dry-run and the build fails with a diff whenever someone commits an unnormalized file or a stale lock file.
Any PHP project with more than one contributor should run this. Solo: free, mostly cosmetic. Small teams: free, and it kills a whole category of noisy review comments. Larger teams: free, run it in CI next to your other linters. prettier/prettier tidies JSON whitespace but won't reorder Composer's sections or touch the lock hash, so it's not a substitute.
The catch: the first run on an older project produces a big diff as sections move around, so land it as its own commit. It also writes to your lock file by default; pass --no-update-lock if your team wants to own that by hand.
Free vs Self-Hosted vs Paid
fully freeFree: Everything. MIT-licensed Composer plugin, also distributed as a phar and through Phive.
Self-hosted: N/A. Runs locally or in CI as part of Composer; nothing to deploy.
Paid: None.
Completely free. The only cost is one noisy commit the first time you run it.
What to do by team size
- Solo
- free
- Small team
- free, add the --dry-run check to CI
- Medium team
- free
- Large team
- free
Get tools like this every Wednesday
One featured tool, three on the radar. No fluff.
A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores
Trust Signals
License: MIT License
Use freely, including commercially. Keep the license notice.
Commercial use: โ Yes
About
- Owner
- ergebnis (Organization)
- Stars
- 1,127
- Forks
- 34
Explore Further
More tools in the directory
quicktype
Generate types and converters from JSON, Schema, and GraphQL
13.9k โmanticoresearch
Open-source search database for full-text, vector, and hybrid search with real-time indexing and SQL.
12.1k โneo
Neo.mjs is a self-evolving software organism: a professional end-to-end AI engineering team whose cross-model swarm inhabits live apps via Neural Link, Active Hybrid GraphRAG, DreamService, and self-healing loops.
3.3k โ