Full-fidelity YAML/JSON command-line converters
The converters take no options, reading one format from stdin and writing the other to stdout. The executables are PHARs named
json2yaml.php to avoid conflict with other executables with these base names, and are distributed as PHARs to avoid dependency conflicts.
(That is, requiring this package installs only the executable PHARs to
vendor/bin to be used purely as command-line tools, without affecting the requiring project's autoloader or dependencies.)
As of version 1.2, the output of
json2yaml.php is generated using the dirtsimple/clean-yaml package, to support optimum diffing and readability.