This package is abandoned and no longer maintained. The author suggests using the c33s/yaml-convert package instead.

Tool to convert from composer.yml to composer.json.

3.0.0 2019-07-13 10:45 UTC



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 composer.json format.

see CHANGELOG.md for the detailed differences to the original project. the main differences are:

  • support for composer.yml and composer.yaml
  • example scripts to use
  • downloadable phar file
  • added lint command

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