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 88 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.

Description / Features

The plugin enables analysis of PHP projects within Sonar.

It relies on well-known external tools: PHPUnit, PHP Depend, PHPMD and PHP_CodeSniffer.

Installation

  1. Install the PHP Environment
  2. Install the Sonar PHP plugin through the Update Center or download it into the SONAR_HOME/extensions/plugins directory
  3. Restart the Sonar server

Usage

Run a Sonar Analysis with the Sonar Runner (Recommended Way)

To launch a Sonar analysis of your PHP project, use the Sonar Runner.

Sample projects are available on GitHub that can be browsed or downloaded: /projects/languages/php.

Run a Sonar Analysis with the other Analyzers

Maven and Ant can also be used to launch analysis on PHP projects.

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.2 - short-term activity (see the JIRA open tickets)
    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

Loading

Release 1.1 (${entries.size()} issues)

Type Key Summary Priority Status Resolution

 

Loading

Release 1.0 (${entries.size()} issues)

Type Key Summary Priority Status Resolution

 

Loading

Release 0.6 (${entries.size()} issues)

Type Key Summary Priority Status Resolution

 

Loading

Release 0.5 (${entries.size()} issues)

Type Key Summary Priority Status Resolution

 

Loading

Release 0.4 (${entries.size()} issues)

Type Key Summary Priority Status Resolution

 

Loading

Release 0.3 (${entries.size()} issues)

Type Key Summary Priority Status Resolution

 

Loading

Release 0.2 (${entries.size()} issues)

Type Key Summary Priority Status Resolution

  • No labels