Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mleko/wingman
Sort composer.json based on the well-known composer.json keys
https://github.com/mleko/wingman
composer composer-json format sort wingman
Last synced: 3 months ago
JSON representation
Sort composer.json based on the well-known composer.json keys
- Host: GitHub
- URL: https://github.com/mleko/wingman
- Owner: mleko
- License: mit
- Created: 2017-08-10T17:54:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-01T09:44:41.000Z (almost 5 years ago)
- Last Synced: 2024-04-17T16:41:21.372Z (10 months ago)
- Topics: composer, composer-json, format, sort, wingman
- Language: PHP
- Homepage:
- Size: 32.2 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# mleko/wingman
Sort composer.json based on the well-known composer.json keys.
List and order of keys is derived from composer [docs](https://getcomposer.org/doc/04-schema.md).[![Build Status](https://travis-ci.org/mleko/wingman.svg?branch=master)](https://travis-ci.org/mleko/wingman)
## CLI usage
Install `mleko/wingman` as global package
```
$ composer global require mleko/wingman
```Format specific `composer.json` file
```
$ wingman format /project-dir/composer.json
Formatting file: /project-dir/composer.json
```Format `composer.json` in current directory
```
$ cd /project-dir
$ wingman
Formatting file: ./composer.json
```## Composer script
Install `mleko/wingman` as dependency
```
$ composer require --dev mleko/wingman
$ vendor/bin/wingman --register
Register wingman in file: ./composer.json
Wingman registered
Formatting file: ./composer.json
````composer.json` will be reformatted after every package update.