akritiko / phpmetrics2json

A script that transforms PHPMetrics console output to .JSON format.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

phpmetrics2json

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.

Dependencies

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.

How to run the script

Linux:

python3 phpmetrics2json <FOLDER_PATH>

Windows:

python phpmetrics2json <FOLDER_PATH>

Output

  • The PHPMetrics HTML report in the directory myreport/
  • The main metrics / console output in JSON format: phpmetrics.json

About

A script that transforms PHPMetrics console output to .JSON format.

License:MIT License


Languages

Language:Python 100.0%