PHPackages                             vagovszky/php-jira-rest-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. vagovszky/php-jira-rest-client

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

vagovszky/php-jira-rest-client
==============================

JIRA REST API Client for PHP Users.

1.0.6(9y ago)0156Apache 2.0PHPPHP &gt;=5.4.0

Since Dec 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/vagovszky/php-jira-rest-client)[ Packagist](https://packagist.org/packages/vagovszky/php-jira-rest-client)[ RSS](/packages/vagovszky-php-jira-rest-client/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (6)DependenciesVersions (7)Used By (0)

Jira rest api
=============

[](#jira-rest-api)

Usage
-----

[](#usage)

Basic usage examples.

### Configuration

[](#configuration)

```
require 'libs/autoload.php';

use JiraRestApi\Configuration\ArrayConfiguration;
use JiraRestApi\ServiceProvider;
use JiraRestApi\JiraException;

$config = [
    "jiraHost" => "http://jira.url.xx",
    "jiraUser" => "user",
    "jiraPassword" => "password",
    "curlTimeout" => 60
];

$serviceProvider = new ServiceProvider(new ArrayConfiguration($config));
```

### Get project info

[](#get-project-info)

```
try {
    $proj = $serviceProvider->getProjectService();

    $p = $proj->get('TEST');

    print_r($p);
} catch (JiraException $e) {
	print("Error Occured! " . $e->getMessage());
}
```

### Get All Project list

[](#get-all-project-list)

```
try {
    $proj = $serviceProvider->getProjectService();

    $prjs = $proj->getAllProjects();

    foreach ($prjs as $p) {
        echo sprintf("Project Key:%s, Id:%s, Name:%s, projectCategory: %s\n", $p->key, $p->id, $p->name, $p->projectCategory['name']
        );
    }
} catch (JiraException $e) {
    print("Error Occured! " . $e->getMessage());
}
```

### Issue info

[](#issue-info)

```
try {
    $issue = $serviceProvider->getIssueService();

    $info = $issue->get('TEST-123');

    print_r($info->fields);

} catch (JiraException $e) {
    print("Error Occured! " . $e->getMessage());
}
```

### Create issue

[](#create-issue)

```
use JiraRestApi\Issue\IssueField;
try {
    $issueField = new IssueField();

    $issueField->setProjectKey("TEST")
        ->setSummary("something's wrong")
        ->setAssigneeName("lesstif")
        ->setPriorityName("Critical")
        ->setIssueType("Bug")
        ->setDescription("Full description for issue");

	$issueService = $serviceProvider->getIssueService();

	$ret = $issueService->create($issueField);

	//If success, Returns a link to the created issue.
	print_r($ret);
} catch (JiraException $e) {
	print("Error Occured! " . $e->getMessage());
}
```

### Add Attachment

[](#add-attachment)

```
use JiraRestApi\Issue\IssueField;
try {

	$issueService = $serviceProvider->getIssueService();

        $ret = $issueService->addAttachments('TEST-123', array('screen_capture.png', 'bug-description.pdf', 'README.md'));

	print_r($ret);
} catch (JiraException $e) {
	print("Error Occured! " . $e->getMessage());
}
```

### Add User To Role

[](#add-user-to-role)

```
use JiraRestApi\User\User;
use JiraRestApi\Project\Role;
use JiraRestApi\Project\Project;

$jiraRestUser = new User();
$jiraRestUser->name = 'name';
$jiraRestUser->displayName = 'full name';
$jiraRestUser->emailAddress = 'email';

$jiraRestProject = new Project();
$jiraRestProject->key = 'TEST';

$jiraRestRole = new Role();
$jiraRestRole->id = '123456';

try{

    $jiraRestUserService = $serviceProvider->getUserService();
    $jiraRestRole = $jiraRestUserService->addUserToProjectRole($jiraRestUser, $jiraRestProject, $jiraRestRole);

} catch (JiraException $e) {
	print("Error Occured! " . $e->getMessage());
}
```

Forked from

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 67.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 ~54 days

Recently: every ~68 days

Total

6

Last Release

3582d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a6a026beaf587e386aa60aa903c9080e51381209d805dbe7093d07406a084e4?d=identicon)[vagovszky](/maintainers/vagovszky)

---

Top Contributors

[![lesstif](https://avatars.githubusercontent.com/u/404534?v=4)](https://github.com/lesstif "lesstif (77 commits)")[![vagovszky](https://avatars.githubusercontent.com/u/2395398?v=4)](https://github.com/vagovszky "vagovszky (23 commits)")[![keanor](https://avatars.githubusercontent.com/u/4879588?v=4)](https://github.com/keanor "keanor (7 commits)")[![vumik](https://avatars.githubusercontent.com/u/1152289?v=4)](https://github.com/vumik "vumik (3 commits)")[![rogercastaneda](https://avatars.githubusercontent.com/u/622658?v=4)](https://github.com/rogercastaneda "rogercastaneda (2 commits)")[![TristanPerchec](https://avatars.githubusercontent.com/u/11650709?v=4)](https://github.com/TristanPerchec "TristanPerchec (1 commits)")[![markcameron](https://avatars.githubusercontent.com/u/1106894?v=4)](https://github.com/markcameron "markcameron (1 commits)")

---

Tags

restjirajira-phpjira-rest

### Embed Badge

![Health badge](/badges/vagovszky-php-jira-rest-client/health.svg)

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

###  Alternatives

[lesstif/php-jira-rest-client

JIRA REST API Client for PHP Users.

5109.5M30](/packages/lesstif-php-jira-rest-client)[psr/link

Common interfaces for HTTP links

2.5k149.8M81](/packages/psr-link)[lesstif/jira-cloud-restapi

JIRA Cloud REST API

481.2M3](/packages/lesstif-jira-cloud-restapi)[chobie/jira-api-restclient

JIRA REST API Client

217729.3k14](/packages/chobie-jira-api-restclient)[rastor/jira-client

A simple PHP JIRA REST client

2071.8k](/packages/rastor-jira-client)

PHPackages © 2026

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