Tool to convert from composer.yml to composer.json.
Download yaml-convert.phar (latest master)
this project is a fork of https://github.com/igorw/composer-yaml which looks abandoned. the purpose is still the same,
yaml-convert.phar allows you to convert a
composer.yaml file into
CHANGELOG.md for the detailed differences to the original project. the main differences are:
- support for
- example scripts to use
- downloadable phar file
Warning: If you already have a composer.json file, it will overwrite it.
To convert from yaml to json, run:
$ php yaml-convert.phar convert
To convert from json to yaml, run:
$ php yaml-convert.phar convert composer.json composer.yaml
To lint a yaml file:
$ php yaml-convert.phar lint myfile.yaml