A Composer plugin that automatically normalizes and formats composer.json files according to a consistent schema.
composer-normalize is a Composer plugin that automatically normalizes composer.json files to ensure consistent formatting and structure. It applies standardized rules for property ordering, indentation, and schema compliance, eliminating manual formatting efforts and disagreements in collaborative projects.
PHP developers and teams working on projects that use Composer for dependency management, particularly those in collaborative environments where consistent composer.json formatting is important.
Developers choose composer-normalize because it automates a tedious manual process, provides configurable formatting options, and integrates seamlessly into CI/CD pipelines with dry-run and diff features to enforce consistency without debate.
🎵 Provides a composer plugin for normalizing composer.json.
Applies standardized rules to composer.json, including property ordering and indentation, eliminating manual formatting efforts as shown in diff examples with projects like pestphp/pest.
Checks if composer.lock is up-to-date and updates its hash automatically after normalization, ensuring file integrity without extra commands.
Supports configurable indentation via command-line or composer.json extra settings, allowing teams to customize formatting to their preferences.
Provides --dry-run and --diff options to preview changes without modifying files, making it easy to enforce compliance in continuous integration pipelines.
Only normalizes composer.json files, not general JSON files, limiting its utility to PHP projects that rely on Composer.
Requires enabling the plugin via composer config allow-plugins, adding an extra setup step and potential security considerations as noted in the README.
Relies on a fixed normalization schema; if Composer introduces new properties, the tool might not handle them until updated, potentially causing issues.
OctoLinker — Links together, what belongs together
Simple static Composer repository generator - For a full private Composer repo use Private Packagist
Restart a CLI process without loading the xdebug extension.
Simple patches plugin for Composer
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.