Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (17 sloc) 0.745 kb


This project allows you to convert a composer.yml 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.


$ curl -s | php
$ php composer.phar install

Build Phar package

$ curl -s | php
$ php box.phar build


To convert from yaml to json, run:

$ bin/composer-yaml convert

To convert from json to yaml, run:

$ bin/composer-yaml convert composer.json composer.yml

Alternatively, you can use the phar package to execute the same command using

$ php composer-yaml.phar [command]
Jump to Line
Something went wrong with that request. Please try again.