Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/webuni/composer-yaml-plugin

Composer plugin to convert a composer.yml to json or vice-versa.
https://github.com/webuni/composer-yaml-plugin

composer composer-plugin yaml

Last synced: about 2 months ago
JSON representation

Composer plugin to convert a composer.yml to json or vice-versa.

Awesome Lists containing this project

README

        

Composer YAML Plugin
====================

[![Packagist](https://img.shields.io/packagist/v/webuni/composer-yaml-plugin.svg?style=flat-square)](https://packagist.org/packages/webuni/composer-yaml-plugin)
[![Build Status](https://travis-ci.org/webuni/composer-yaml-plugin.svg?branch=master)](https://travis-ci.org/webuni/composer-yaml-plugin)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/webuni/composer-yaml-plugin/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/webuni/composer-yaml-plugin/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/webuni/composer-yaml-plugin/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/webuni/composer-yaml-plugin/?branch=master)
[![SensioLabsInsight](https://img.shields.io/sensiolabs/i/592c3803-ec6b-4685-b483-7c6bba0ec903.svg?style=flat-square)](https://insight.sensiolabs.com/projects/592c3803-ec6b-4685-b483-7c6bba0ec903)

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
------------

- https://github.com/igorw/composer-yaml
- https://github.com/webuni/composer-neon-plugin

License
-------

MIT License. See the LICENSE file.