php that converts following configuration formats: xml, php array, yaml, json

v1.0.0 2013-06-07 21:04 UTC

This package is auto-updated.

Last update: 2023-11-16 19:22:51 UTC


A cli tool to convert files from and to yaml, json, xml or php array


Install it via: * git clone * composer and "net_bazzline/php_configuration_format_converter": "dev-master"


Simple switch to the directory via console and typ bin/net_bazzline_configuration_format_converter.php. This will display the help screen.

To start converting, add source and destination behind the command convert.

bin/net_bazzline_configuration_format_converter.php convert my/source/file.yaml my/destination/file.php

The tool decides on the given file extension how he has to handle the conversation. File extensions can be uppercase, lowercase, whatevercase.

Supported formats

Right now, the following formares are supported: * YAML * XML * JSON * php array


Take a look to the directory examples to just start playing arround.


The converter will stop working if destination file already exists.
If you want to overwrite that file, you have to add the option --force.