c33s/composer-yaml

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

2.0.0 2019-02-19 21:17 UTC

README

Maintenance

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
  • removed convert (this is now the default function)

Warning: If you already have a composer.json file, it will overwrite it.

Usage

To convert from yaml to json, run:

$ php yaml-convert.phar

To convert from json to yaml, run:

$ php yaml-convert.phar composer.json composer.yaml