Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Composer Normalize Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Standardization & Compliance: Enforces consistent composer.json formatting across teams, reducing merge conflicts and onboarding friction for new developers.
  • Developer Experience (DX): Automates formatting (sorting, indentation, alphabetization) to eliminate manual formatting debates, freeing engineers to focus on feature work.
  • Security & Maintainability: Mitigates risks from inconsistent dependency versions (e.g., accidental upgrades/downgrades) by locking versions in a standardized way.
  • CI/CD Integration: Reduces flaky builds caused by formatting discrepancies in PRs, improving CI/CD reliability and developer velocity.
  • Roadmap Efficiency: Accelerates dependency management for new projects or migrations (e.g., PHP version upgrades, package consolidations).
  • Build vs. Buy: Avoids reinventing wheel for a low-effort, high-impact tool—ideal for teams already using Composer.

When to Consider This Package

  • Adopt if:

    • Your team struggles with composer.json merge conflicts or formatting inconsistencies.
    • You prioritize DX and want to eliminate "style wars" over dependency ordering.
    • You’re scaling PHP development (5+ engineers) or onboarding new hires frequently.
    • Your CI/CD pipeline flags formatting issues as blocker failures.
    • You need to enforce strict dependency versioning (e.g., for security audits or reproducibility).
  • Look elsewhere if:

    • Your team already has a mature, custom solution (e.g., in-house scripts or strict PR templates).
    • You’re using a non-Composer dependency manager (e.g., Poetry, npm).
    • Your composer.json is extremely complex (e.g., dynamic requirements) and normalization would break functionality.
    • You lack buy-in from engineers to adopt automated formatting tools.

How to Pitch It (Stakeholders)

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:

  • Sort packages consistently.
  • Lock versions to avoid surprises.
  • Work in the background so you don’t have to think about it. Run composer normalize before committing, and boom—one less thing to worry about."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor