A new command to validate json config file

The CompatInfo Command-Line Interface always needs a file in JSON format to run. It should be found either in the current, $HOME/.config/, or /etc directory.

By setting the COMPATINFO environment variable it is possible to set the filename of phpcompatinfo.json to something else.

E.g: COMPATINFO=my-phpcompatinfo.json

It’s very usefull to validate structure of the json configuration file before to run any command of CompatInfo

Example 1. Just run the command below
$ phpcompatinfo validate
Published by Laurent Laville on 2014-07-28