abul/jira-php-client

A PHP library making interaction with JIRA simpler.

0.3 2019-08-16 11:08 UTC

This package is auto-updated.

Last update: 2024-04-19 21:29:37 UTC


README

JIRA supports REST API, It can be very useful, for example, during automation job creation and notification sending.

Usage

<?php
use Jira\Client;
use Jira\Authentication\BasicAuthenticationService

$api = new Client(
    'https://your-jira-project.net',
    new BasicAuthenticationService('yourname', 'password')
);

$issues = $api->get('issue')->search('project = "YOURPROJECT" AND (status != "closed" AND status != "resolved") ORDER BY priority DESC');

foreach ( $issues as $issue ) {
    var_dump($issue);
}

Installation

php composer.phar require abul/jira-php-client ^0.1@dev

Requirements

License

JIRA PHP Client is released under the MIT License. See the bundled LICENSE file for details.