bluetea/jira-rest-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bluetea/jira-rest-api

Composer 安装命令:

composer require bluetea/jira-rest-api

包简介

Atlassian JIRA REST API PHP Library

README 文档

README

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!

Usage

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

<?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!

Documentation

JIRA 6.3.10 REST API Documentation JIRA REST API Developers Documentation

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.

统计信息

  • 总下载量: 8.83k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 8
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-17