General questions
I have projects that do not use the required version of phpunit or pdepend or phpcd or whatelse, what can I do?
If you are able to have several versions of code analysis tool on the same machine, just be sure that the correct one will be used by maven when launching mvn sonar:sonar.
You also have to ensure that the output file log is compatible with the one specified by the version of the tool you want to use.
I have created my own PHP_CodeSniffer Standard or PHPMD ruleset, can I use it with Sonar PHP ?
Yes, but with some extra work. Two possible cases :
1) Your work consisted in pure configuration: modify a ruleset for PHPMD or create a PHPCS Standard including Sniffs from existing standards.
In this case you'll be able to recreate your work directly from the Sonar UI for Quality Profiles
NB As per this version (0.6) you must check for the presence of your rules in Sonar profiles, as some PHPCS rule description is still missing.
If you don't find all of your rules, you simply fall in case 2.
2) You added code to the solutions: you developed Sniffs or PHP PMD Rules
In this case you will have to Extend the PHP coding rules
Analysis failures
When analyzing large PHP project php hangs or end with a unsual return code
Php executable may have reached its maximum allocated memory. Increase the memory_limit value in your php.ini file. For example the file is located in /etc/php5/cli/php.ini on Ubuntu.
When analyzing large PHP project maven hangs with a Java heap space message
Increase the maximum heap memory allocated for maven by setting the environnement variable MAVEN_OPTS
When analyzing large PHP project phpdepend hangs with an error code 255 and message saying "Maximum function nesting level of ‘100′ reached"
Increase the maximum number of nested levels by editing your php.ini files and setting a value greater than 100 (which is default). You may also need to increase the maximum amount of memory that a script can consume.

