c33s / composer-yaml
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.2
2021-12-08 16:44 UTC
Requires
- composer/composer: ^1.1
- symfony/console: ^2.1 || ^3.0 || ^4.0
- symfony/yaml: ^2.1 || ^3.0 || ^4.0
This package is auto-updated.
Last update: 2022-10-05 20:56:25 UTC
README
Download yaml-convert.phar (latest main)
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.
Stable download url for download from gitlab package repository via public api:
https://gitlab.com/api/v4/projects/10924742/packages/generic/yaml-convert/<VERSION>/yaml-convert.phar
download it like:
wget https://gitlab.com/api/v4/projects/10924742/packages/generic/yaml-convert/3.0.2/yaml-convert.phar
see CHANGELOG.md
for the detailed differences to the original project. the main differences are:
- support for
composer.yml
andcomposer.yaml
- example scripts to use
- downloadable phar file
- added
lint
command
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 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