igorw / composer-yaml
Tool to convert from composer.yml to composer.json.
Installs: 527
Dependents: 0
Suggesters: 0
Security: 0
Stars: 56
Watchers: 4
Forks: 15
Open Issues: 4
Requires
- composer/composer: 1.0.*@dev
- symfony/console: ~2.1
- symfony/yaml: ~2.1
This package is not auto-updated.
Last update: 2024-11-09 12:44:51 UTC
README
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.
Installation
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar install
Build Phar package
$ curl -s http://box-project.org/installer.php | php
$ php box.phar build
Usage
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]