2017 © Pedro Peláez
 

library jira-php-client

PHP client library for interacting with the Jira API

image

silinternational/jira-php-client

PHP client library for interacting with the Jira API

  • Thursday, August 11, 2016
  • by fillup
  • Repository
  • 7 Watchers
  • 3 Stars
  • 599 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

jira-php-client

PHP client to interact with the JIRA API., (*1)

We're slowly building out this client as we need the functionality. Initially we only need it for managing user accounts., (*2)

This client is built on top of Guzzle, the PHP HTTP Client. Guzzle has a simple way to create API clients by describing the API in a Swagger-like format without the need to implement every method yourself. So adding support for more JIRA APIs is relatively simple. If you want to submit a pull request to add another feature, please do. If you don't know how to do that, ask us and we might be able to add it in for you., (*3)

JIRA API Authentication

JIRA uses Basic Auth to authenticate API calls. You must provide the username and password for your API user via parameters apiuser and apipass., (*4)

Install

Installation is simple with Composer. Add "silinternational/jira-php-client": "dev-master" to your composer.json file and update., (*5)

Usage

Example:, (*6)


<?php use JIRA\Client; $client = new Client([ 'apiuser' => 'username', 'apipass' => 'password', ]); $user = $client->getUser(['userId' => 123456789]); echo $user['email']; // example@domain.org $newUser = $client->addUser([ "name" => "test_user", "password" => "newpassword", "emailAddress" => "test_user@domain.org", "displayName" => "test user", ]); echo $user['data']['userId']; // 1234567890

If you host your own JIRA Enterprise server you can override the default API url:, (*7)

<?php

use JIRA\Client;

$client = new Client([
  'apiuser' => 'username',
  'apipass' => 'password',
  'description_override' => [
    'baseUrl' => 'https://my.server.com',
  ],
]);

Guzzle Service Client Notes

  • Presentation by Jeremy Lindblom: https://speakerdeck.com/jeremeamia/building-web-service-clients-with-guzzle-1
  • Example by Jeremy Lindblom: https://github.com/jeremeamia/sunshinephp-guzzle-examples
  • Parameter docs in source comments: https://github.com/guzzle/guzzle-services/blob/master/src/Parameter.php

The Versions

11/08 2016

dev-master

9999999-dev

PHP client library for interacting with the Jira API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ben Duggan

atlassian jira

11/08 2016

dev-develop

dev-develop

PHP client library for interacting with the Jira API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ben Duggan

atlassian jira

11/08 2016

0.2.1

0.2.1.0

PHP client library for interacting with the Jira API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ben Duggan

atlassian jira

17/06 2015

0.2.0

0.2.0.0

PHP client library for interacting with the Jira API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ben Duggan

atlassian jira

15/06 2015

0.1

0.1.0.0

PHP client library for interacting with the Jira API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ben Duggan

atlassian jira