abul / jira-php-client
一个使与JIRA交互更简单的PHP库。
0.3
2019-08-16 11:08 UTC
Requires
- php: >=5.6.0
- ext-json: *
- guzzlehttp/guzzle: ~6.0
This package is auto-updated.
Last update: 2024-09-19 22:31:09 UTC
README
JIRA支持REST API,这非常有用,例如,在自动化任务创建和发送通知时。
使用方法
- JIRA Rest API 文档:https://docs.atlassian.com/jira/REST/latest/
<?php use Jira\Client; use Jira\Authentication\BasicAuthenticationService $api = new Client( 'https://your-jira-project.net', new BasicAuthenticationService('yourname', 'password') ); $issues = $api->get('issue')->search('project = "YOURPROJECT" AND (status != "closed" AND status != "resolved") ORDER BY priority DESC'); foreach ( $issues as $issue ) { var_dump($issue); }
安装
php composer.phar require abul/jira-php-client ^0.1@dev
要求
许可证
JIRA PHP客户端采用MIT许可证发布。有关详细信息,请参阅捆绑的LICENSE文件。