Installation

Download all-in-one Phar

Download the last build here

With Composer

$ composer.phar create-project trismegiste/mondrian mondrian dev-master

Clone with Github

$ git clone git://github.com/Trismegiste/Mondrian.git
$ composer.phar install

Other requirements

A lot of memory (for PHP)

In order to run Mondrian on big project, you need a lot of memory. On a large package with fat classes, you can expect about 500kB per php files.

You can check the memory usage after parsing with the --verbose option.

Check the memory limit in CLI environment by

$ php --info | grep memory_limit
Override the memory limit in command line of PHP with
$ php -d memory_limit=256M mondrian.php
It is not currently possible to override the memory limit with the phar executable.
You can change the memory_limit in php.ini. To locate the config file in CLI, you can lauch
$ php --ini

Unit tests

It's a 50/50 joke but don't expect refactor code if you don't have unit tests. See my RADBundle if you want to fast generate skeleton of tests.

GraphViz

To read the DOT format of the generated report, you need GraphViz

For Microsoft's minions

Go to this page and download the MSI or the ZIP:
http://www.graphviz.org/Download_windows.php

For Linux addicts

There are many ways, one simple is :

$ sudo apt-get install xdot
$ xdot report.dot

For Mac fanboys

http://www.graphviz.org/Download_macos.php