PHPackages                             pbrasseur/jira-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. pbrasseur/jira-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

pbrasseur/jira-client
=====================

A simple PHP JIRA REST client

0.4.0(8y ago)019MITPHP

Since May 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/itkg-pbrasseur/jira-client)[ Packagist](https://packagist.org/packages/pbrasseur/jira-client)[ RSS](/packages/pbrasseur-jira-client/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (24)Used By (0)

JIRA Client
===========

[](#jira-client)

A simple JIRA REST client for PHP.

The main or killing feature of this library is resolving custom fields of issues.

[![Codacy Badge](https://camo.githubusercontent.com/f6e366a0126c4354d5de6eebe5e5c3313dc4da3a8ec466b13fd5a26c47a2d63e/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6632636463313230653563633437303138373930653834653965373333306530)](https://www.codacy.com/app/doom4eg/jira-client?utm_source=github.com&utm_medium=referral&utm_content=oRastor/jira-client&utm_campaign=Badge_Grade)

Example
-------

[](#example)

```
$api = new JiraClient\JiraClient('http://jira.hostname', 'login', 'password');

try {
    // Get an existing issue
    $issue = $api->issue()->get('JRA-123');

    // Print the issue id.
    echo $issue->getId();

    // Print the issue key.
    echo $issue->getKey();

    // Create new issue.
    $newIssue = $api->issue()
        ->create('JIRA', 'Suggestion')
        ->field(Field::SUMMARY, 'My Suggestion')
        ->field(Field::DESCRIPTION, 'Some description')
        ->execute();

    // Print the issue id.
    echo $newIssue->getId();

    $newIssue = $newIssue->update()
        ->field(Field::DESCRIPTION, 'Some new description')
        ->customField(10012, 'Value for custom field')
        ->fieldAdd(Field::LABELS, 'new-label')
        ->execute();

    // Print description of updated issue.
    echo $newIssue->getDescription();

    // Two ways for adding new comment.
    $newIssue->addComment("Some comment content");
    $api->issue()->addComment($newIssue->getKey(), "Another comment content");

    // Add new comment limited to the developer role.
    $newIssue->addComment("Only for developers", "role", "Developers");

    // Get reporter's name.
    $reporterName = $newIssue->getReporter()->getName();

    // Get an array of labels.
    $labels = $newIssue->getLabels();

    // Get an array of transitions for issue
    $transitions = $api->issue()->getTransitions($newIssue->getKey());

    // Executing transitions to change issue status
    $newIssue->transition()->execute(120);

    // Searches for issues using JQL
    $issues = new JiraClient\Request\SearchIterator($api, "project = Test");

    // or another way
    $issues = $api->issue()->search("project = Test");

    // Total count of found issues
    $total = $issues->getTotal();

    foreach ($issues as $issue) {
        $issue->update()
            ->fieldAdd(Field::LABELS, 'new-label')
            ->execute();
    }
} catch (\JiraClient\Exception\JiraException $e) {
    // exception processing
}
```

Installation
------------

[](#installation)

```
composer require "pbrasseur/jira-client:dev-master"
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 85.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~36 days

Recently: every ~59 days

Total

23

Last Release

3208d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/849db152b3a7a7c8fb9be14882522aea71dce357fe52471c8d362948fe41bf32?d=identicon)[pbrasseur](/maintainers/pbrasseur)

---

Top Contributors

[![oRastor](https://avatars.githubusercontent.com/u/1734394?v=4)](https://github.com/oRastor "oRastor (65 commits)")[![itkg-pbrasseur](https://avatars.githubusercontent.com/u/7848037?v=4)](https://github.com/itkg-pbrasseur "itkg-pbrasseur (5 commits)")[![marijnotte](https://avatars.githubusercontent.com/u/6791447?v=4)](https://github.com/marijnotte "marijnotte (2 commits)")[![grausch](https://avatars.githubusercontent.com/u/2414162?v=4)](https://github.com/grausch "grausch (1 commits)")[![alnidok](https://avatars.githubusercontent.com/u/5506837?v=4)](https://github.com/alnidok "alnidok (1 commits)")[![goetzk](https://avatars.githubusercontent.com/u/8732490?v=4)](https://github.com/goetzk "goetzk (1 commits)")[![RuffoMaker](https://avatars.githubusercontent.com/u/21340887?v=4)](https://github.com/RuffoMaker "RuffoMaker (1 commits)")

---

Tags

apiclientrestjira

### Embed Badge

![Health badge](/badges/pbrasseur-jira-client/health.svg)

```
[![Health](https://phpackages.com/badges/pbrasseur-jira-client/health.svg)](https://phpackages.com/packages/pbrasseur-jira-client)
```

###  Alternatives

[rastor/jira-client

A simple PHP JIRA REST client

2070.7k](/packages/rastor-jira-client)[cybercog/youtrack-rest-php

YouTrack REST API PHP Client.

37149.2k3](/packages/cybercog-youtrack-rest-php)[meteocontrol/vcom-api-client

HTTP Client for meteocontrol's VCOM API - The VCOM API enables you to directly access your data on the meteocontrol platform.

175.7k1](/packages/meteocontrol-vcom-api-client)[jonathanraftery/bullhorn-rest-client

Simple REST client for the Bullhorn API, including automated OAuth2 login

1142.7k](/packages/jonathanraftery-bullhorn-rest-client)[repat/plentymarkets-rest-client

REST Client for Plentymarkets

1510.0k](/packages/repat-plentymarkets-rest-client)[laragear/api-manager

Manage multiple REST servers to make requests in few lines and fluently.

161.8k](/packages/laragear-api-manager)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
