Download the PHP package jnbn/composer-json-fixer without Composer
On this page you can find all versions of the php package jnbn/composer-json-fixer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package composer-json-fixer
composer.json fixer
A tool for fixing and cleaning up composer.json
file
according to its schema and best practices.
Installation
composer.json fixer can be installed globally:
or as a dependency (e.g. to include into CI process):
Usage
Run and fix:
See diff of potential fixes:
Upgrade dependencies with composer require
:
Fixers
- composer keys lowercase - changes names of properties to lowercase
- autoload - fixes paths and sorts
autoload
andautoload-dev
- config - sorts
config
by key - keywords - sorts
keywords
by value - license - adds
license
if it is missing - minimum stability - removes
minimum-stability
if it has default value ("stable") - name - makes package name lowercase
- repositories - sorts
repositories
- require - cleans up versions for
require
andrequire-dev
- version - removes
version
if it is present - composer keys sorting - sorts properties according to the documentation
Example
Before running composer-json-fixer
:
After:
Exit status
0
-composer.json
file does not require fixing,1
-composer.json
file can be, or was fixed,2
- exception was thrown.
Contributing
Request a feature or report a bug by creating issue.
Alternatively, fork the repo, develop your changes, regenerate README.md
:
make sure all checks pass:
and submit a pull request.
All versions of composer-json-fixer with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4|^8.0
ext-json Version *
ext-mbstring Version *
sebastian/diff Version ^4.0
symfony/console Version ^5.0
symfony/filesystem Version ^5.0
symfony/finder Version ^5.0
symfony/process Version ^5.0
ext-json Version *
ext-mbstring Version *
sebastian/diff Version ^4.0
symfony/console Version ^5.0
symfony/filesystem Version ^5.0
symfony/finder Version ^5.0
symfony/process Version ^5.0
The package jnbn/composer-json-fixer contains the following files
Loading the files please wait ....