Composer plugin to convert a composer.yaml to json or vice-versa.
This plugin allows you to convert a composer.yaml file into composer.json format. It will use those exact filenames of your current working directory.
Warning: If you already have a composer.json file, it will overwrite it.
composer global require webuni/composer-yaml-plugin
To convert from yaml (
composer.yml) to json (
$ composer yaml-convert
To convert from json to yaml, run:
$ composer yaml-convert composer.json
MIT License. See the LICENSE file.