2017 © Pedro Peláez
 

library php-sonarqube-api

SonarQube API client for php projects

image

spirit-dev/php-sonarqube-api

SonarQube API client for php projects

  • Wednesday, August 23, 2017
  • by spirit-dev
  • Repository
  • 1 Watchers
  • 4 Stars
  • 185 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 7 Versions
  • 6 % Grown

The README.md

-- Under development --

A PHP wrapper for use with the SonarQube.

Based on php-sonarqube-api., (*1)

Installation

Install Composer, (*2)

$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer

Add the following to your require block in composer.json config. Note: be careful when using the dev-master tag as this may have unexpected results depending on your version of SonarQube., (*3)

"spirit-dev/php-sonarqube-api": "dev-master"

Include Composer's autoloader:, (*4)

require_once dirname(__DIR__).'/vendor/autoload.php';

General API Usage

$client = new \SonarQube\Client('http://sonar.domain.com/api/', 'username', 'password'); // change here
$authentication = $client->api('authentication')->validate();
$projects = $client->projects->search(['search'=>'XYZ']);
$measures = $client->measures->component(['componentKey'=>'ABC.XYZ','metricKeys'=>'ncloc_language_distribution,complexity,violations']);

Calls can be made either via $client->api('apiSection')->endpoint() or as a property: $client->apiSection->endpoint(). The two syntaxes work identically., (*5)

Contributing

This project is currently under development. Many part of SonarQube official API are not parts of this project. Feel free to fork this project, apply modifications and sending me you pull requests., (*6)

The Versions

23/08 2017

dev-master

9999999-dev https://github.com/spirit-dev/php-sonarqube-api

SonarQube API client for php projects

  Sources   Download

GPL v3

The Requires

 

api sonar sonarqube

03/09 2016

0.0.4

0.0.4.0 https://github.com/spirit-dev/php-sonarqube-api

SonarQube API client for php projects

  Sources   Download

GPL v3

The Requires

 

api sonar sonarqube

24/05 2016

0.0.3.1

0.0.3.1 https://github.com/spirit-dev/php-sonarqube-api

SonarQube API client for php projects

  Sources   Download

GPL v3

The Requires

 

api sonar sonarqube

02/05 2016

0.0.3

0.0.3.0 https://github.com/spirit-dev/php-sonarqube-api

SonarQube API client for php projects

  Sources   Download

GPL v3

The Requires

 

api sonar sonarqube

10/02 2016

dev-interfaces

dev-interfaces https://github.com/spirit-dev/php-sonarqube-api

SonarQube API client for php projects

  Sources   Download

GPL v3

The Requires

 

api sonar sonarqube

10/02 2016

0.0.2

0.0.2.0 https://github.com/spirit-dev/php-sonarqube-api

SonarQube API client for php projects

  Sources   Download

GPL v3

The Requires

 

api sonar sonarqube

09/02 2016

0.0.1

0.0.1.0 https://github.com/spirit-dev/php-sonarqube-api

SonarQube API client for php projects

  Sources   Download

GPL v3

The Requires

 

api sonar sonarqube