2017 © Pedro Peláez
 

library jira-rest-api

Atlassian JIRA REST API PHP Library

image

bluetea/jira-rest-api

Atlassian JIRA REST API PHP Library

  • Wednesday, April 22, 2015
  • by bluetea
  • Repository
  • 6 Watchers
  • 5 Stars
  • 7,609 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 6 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

JIRA Rest API for PHP

Atlassian JIRA contains a REST API. With this PHP Library you can use this REST API on an object oriented way. If you want to use this library in a Symfony2 project, a Symfony2 bundle will be available soon!, (*1)

Usage

Usage is very easy! First set up the connection to your Atlassian JIRA server and then call some endpoints., (*2)

<?php

namespace Acme\DemoBundle\Controller;

use Bluetea\Api\Authentication\BasicAuthentication;
use Bluetea\Api\Client\CurlClient;
use Bluetea\Api\Client\GuzzleClient;
use Bluetea\Jira\Endpoint\ProjectEndpoint;


class TestController extends Controller
{
    public function testAction()
    {
        $apiClient = new GuzzleClient(
            'https://atlassian.yourdomain.com/rest/api/2',
            new BasicAuthentication('username', 'password')
        );

        $projectEndpoint = new ProjectEndpoint($apiClient);
        // Get all projects
        return new JsonResponse($projectEndpoint->findAll());
    }
}

Check the Jira/Endpoint namespace for more endpoints and actions. Please help us to adding all the JIRA endpoints by submitting a PR!, (*3)

Documentation

JIRA 6.3.10 REST API Documentation JIRA REST API Developers Documentation, (*4)

Debug

Install the JIRA REST API browser to test your calls. You find it at https://atlassian.yourdomain.com/plugins/servlet/restbrowser. Your getting a 404? Install the plugin first via the plugin manager., (*5)

The Versions

22/04 2015

dev-master

9999999-dev

Atlassian JIRA REST API PHP Library

  Sources   Download

MIT

The Requires

 

api atlassian jira