Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/webuni/composer-yaml-plugin
- Owner: webuni
- License: mit
- Created: 2016-10-22T02:02:22.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-20T12:15:21.000Z (almost 7 years ago)
- Last Synced: 2024-04-30T04:04:45.848Z (8 months ago)
- Topics: composer, composer-plugin, yaml
- Language: PHP
- Size: 20.5 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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-pluginLicense
-------MIT License. See the LICENSE file.