PHP code example of alexkovalevych / jira-api

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

    

alexkovalevych / jira-api example snippets


$client = new IssueClient('https://myproject.atlassian.com/rest/api/latest', 'login', 'password');

$issue = json_decode($client->get($issueId))->getBody()->getContents());

try {
	$response = $client->getIssue($issueId);
} catch (RequestException $e) {
	...
}