Tools/ergebnis/composer-normalize

composer-normalize

๐ŸŽต Provides a composer plugin for normalizing composer.json.

1.1k โ˜…emergingPHPMIT License โ†’trending

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 free

Free: 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
Self-hosting ops:trivial

Get tools like this every Wednesday

One featured tool, three on the radar. No fluff.

Score
69/100 ยท B
Adoption12/30
Maintenance25/25
Community7/20
License15/15
Analysis10/10

A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores

Trust Signals

Organization account (47 public repos)

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