Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 82 Next »

Live example

Icon

If you want to see a live example of the capabilities of the PHP plugin, you can have a look at the analysis of the PHP CodeSniffer project on Nemo.

 

Features

Sonar PHP Plugin provides PHP language support to Sonar. The plugin enables all Sonar builtin features for PHP projects.

It relies on well known external analysis tools for PHP: PHP Unit, PHP Depend, PHPMD and PHP_CodeSniffer.

Sonar PHP Plugin

PHP Runtime

PHPUnit

PHP Depend

PHPMD

PHP_CodeSniffer

PhpCPD

0.3

5.2.6+

3.5.5

0.9.14

0.2.5

1.3.0RC1

1.3.1

0.4

5.2.6+

3.5.5

0.9.14

0.2.5

1.3.0RC1

1.3.1

0.5

5.2.6+

3.5.5

0.10.6

1.1.0

1.3.0RC1

1.3.1

0.6

5.2.6+

3.5.5

0.10.6

1.1.0

1.3.1

1.3.1
1.05.2.6+3.5.50.10.71.2.01.3.2-
1.15.2.6+3.5.51.0.31.3.21.3.2-

Which versions of the external tools should you use?

Icon

The versions listed above are those we use for developments and tests, and we recommend you to also install those ones (even if the PHP Plugin might be compatible with older versions as well).

Where to start?

Here are the main steps to get started:

  1. Install Sonar and its requirements, plus the PHP plugin and everything that is needed to run analyses
  2. Then, choose how you want to run an analysis on your PHP project, and enjoy the results!

Once you're familiar with the plugin, you can dig more into the documentation to discover advanced features (like adding your own PHP CodeSniffer or PHPMD rules into Sonar).

Have some questions or problems?

Here's the path you should follow in this case:

  1. First check the plugin's FAQ or Troubleshooting sections.
  2. See if there is any open issues that may be linked to your question/problem
  3. Eventually send a mail on the user mailing list (user@sonar.codehaus.org) to ask for help

Roadmap

  1. PHP 1.1 - short-term activity (see the JIRA open tickets - ETA: June 2012)
    1. Improve the PHP CodeSniffer rule repository (adding missing parameters, descriptions, ...)
    2. Work on the "Sonar Way", PEAR and Zend profiles (<= for PHP gurus! (wink) )
  2. PHP 2.0 - mid-term activity
    1. Handle multiple files with the same name
    2. Consider root folders as "Projects"
    3. Non structured PHP files
    4. If it turns out that those tickets are technically difficult/long to implement, then they can be postponed

Changelog

com.atlassian.confluence.macro.MacroExecutionException: JIRA project does not exist or you do not have permission to view it.

com.atlassian.confluence.macro.MacroExecutionException: JIRA project does not exist or you do not have permission to view it.

com.atlassian.confluence.macro.MacroExecutionException: JIRA project does not exist or you do not have permission to view it.

com.atlassian.confluence.macro.MacroExecutionException: JIRA project does not exist or you do not have permission to view it.

com.atlassian.confluence.macro.MacroExecutionException: JIRA project does not exist or you do not have permission to view it.

com.atlassian.confluence.macro.MacroExecutionException: JIRA project does not exist or you do not have permission to view it.

  • No labels