silinternational/jira-php-client
最新稳定版本:0.3.2
Composer 安装命令:
composer require silinternational/jira-php-client
包简介
PHP client library for interacting with the Jira API
关键字:
README 文档
README
PHP client to interact with the JIRA API.
We're slowly building out this client as we need the functionality. Initially we only need it for managing user accounts.
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.
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.
Install
Installation is simple with Composer.
Add "silinternational/jira-php-client": "dev-master" to your composer.json file and update.
Usage
Example:
<?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:
<?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
silinternational/jira-php-client 适用场景与选型建议
silinternational/jira-php-client 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 761 次下载、GitHub Stars 达 3, 最近一次更新时间为 2015 年 06 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「jira」 「atlassian」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 silinternational/jira-php-client 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 silinternational/jira-php-client 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 silinternational/jira-php-client 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A simple PHP JIRA REST client
Jira REST API Client
An endpoint for your Laravel application to listen to Atlassian's Jira webhook events
JIRA REST API Client for PHP Users.
A simple way to implement Atlassian Crowd Authentication into your application.
Confluence API PHP Client
统计信息
- 总下载量: 761
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-06-15