webuni / composer-yaml-plugin
Composer plugin to convert a composer.yaml to json or vice-versa.
Package info
github.com/webuni/composer-yaml-plugin
Type:composer-plugin
pkg:composer/webuni/composer-yaml-plugin
2.1.0
2018-01-02 10:04 UTC
Requires
- php: ^5.5 || ^7.0
- composer-plugin-api: ^1.0
- symfony/yaml: ^2.8 || ^3.0 || ^4.0
Requires (Dev)
- composer/composer: ^1.1
- friendsofphp/php-cs-fixer: ^2.0
- phpunit/phpunit: ^4.8 || ^5.4 || ^6.0
- symfony/var-dumper: ^3.0 || ^4.0
This package is auto-updated.
Last update: 2026-03-05 07:23:28 UTC
README
This plugin allows you to convert a composer.yaml 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
composer global require webuni/composer-yaml-plugin
Usage
To convert from yaml (composer.yaml or composer.yml) to json (composer.json), run:
$ composer yaml-convert
To convert from json to yaml, run:
$ composer yaml-convert composer.json
Alternatives
License
MIT License. See the LICENSE file.