PHP code example of peterjmit / bamboo-api-client

1. Go to this page and download the library: Download peterjmit/bamboo-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/ */

    

peterjmit / bamboo-api-client example snippets



use  Peterjmit\Bamboo\Bamboo;

$bamboo = Bamboo::create('bamboo.com', 'username', 'password');


$bamboo = Bamboo::create('bamboo.com', 'username', 'password', 1);


$bamboo->getAllBuildResults();


$bamboo->getPlanResults('AN', 'EXAMPLE');


$bamboo->getPlanBranchResults('AN', 'EXAMPLE', 'my-cool-feature-branch');


$bamboo->getPlanBranch('AN', 'EXAMPLE', 'my-cool-feature-branch');