gorkalaucirica/jira-api-client

v0.1.1 2014-06-22 20:39 UTC

This package is not auto-updated.

Last update: 2024-12-17 03:58:12 UTC


README

PHP Library to process calls to JIRA's REST API

Latest Stable Version Total Downloads Latest Unstable Version License SensioLabsInsight Build Status Scrutinizer Code Quality

This package is work in progress and some functionality is not available yet.

##Installation

The recommended way to install JiraApiClient is through composer. Just create a composer.json file and run the php composer.phar install command to install it:

"require": {
    "gorkalaucirica/jira-api-client": "dev-master"
}

##Usage

$auth = new BasicAuth('username','password');
$client = new Client('https://example.atlassian.net/rest/api/2', $auth);

##API calls

###Filtering issues:

$issuesAPI = new IssuesAPI($client);
$issues = $issuesAPI->searchIssues("<your jql query>");

###Getting issue by id

$issuesAPI = new IssuesAPI($client);
$issues = $issuesAPI->getIssue('XXX-42');

###Posting new issue

$newIssue = new Issue();

//Fill new issue using setters
//....

$issuesAPI = new IssuesAPI($client);
$issue = $issuesAPI->postIssue($newIssue);

##Tests

bin/phpspec run