A script that creates a .JSON file from the console output of PHPMetrics. Originally PHPMetrics creates a human readable html report but the main metrics are given only in console during runtime. You can find more on PHPMetrics output on the official documentation.
NOTE: We recommend that you install PHPMetrics via composer either on Windows or Linux systems. Please don't forget to add composer bin directory to your OS'es environmental variables.
Linux:
python3 phpmetrics2json <FOLDER_PATH>
Windows:
python phpmetrics2json <FOLDER_PATH>
- The PHPMetrics HTML report in the directory myreport/
- The main metrics / console output in JSON format: phpmetrics.json