PHP code example of forgeqc / sonarqube-api-client
1. Go to this page and download the library: Download forgeqc/sonarqube-api-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
forgeqc / sonarqube-api-client example snippets
$api = new HttpClient('https://sonarcloud.io/api/', $sonar_api_key);
$sonarcloudOrganization = 'testapi';
$instance = new SonarqubeInstance($api, $sonarcloudOrganization);
//Group creation
$group = $instance->createGroup('TestGroup');
//Group deletion
$result = $instance->deleteGroup('TestGroup');