3.3.39. Phpcity

3.3.39.1. Phpcity

The Phpcity report represents your code as a city.

Phpcity is a code visualisation tool : it displays the source code as a city, with districts and buildings. There are be high sky crappers, signaling large classes, entire districts of small blocks, large venues and isolated parks. Some imagination is welcome too.

The original idea is Richard Wettel’s Code city, which has been adapted to many languages, including PHP. The PHP version is based on the open source PHPcity project, which is itself build with JScity.

To use this tool, run an exakat audit, then generate the ‘PHPcity’ report : php exakat.phar report -p mycode -format PHPcity -v

This generates the exakat.phpcity.json file, in the projects/mycode/ folder.

You may test your own report online, at Adrian Huna’s website, by uploading the results and seeing it live immediately.

Or, you can install the PHPcity application, and load it locally.

Example of a Phpcity report (0)

3.3.39.2. Specs

Short name

Phpcity

Rulesets

Phpcity doesn’t depend on rulesets.

Type

JSON

Target

This report is written in ‘exakat.phpcity.json’.

Available in

Entreprise Edition