dereuromark/jira-api-restclient

Jira REST API 客户端

1.1.0 2022-10-06 12:01 UTC

This package is auto-updated.

Last update: 2024-09-06 17:54:02 UTC


README

CI PHPStan Latest Stable Version Minimum PHP Version License

你们都知道 Jira 支持REST API,对吧?它非常有用,例如,在自动化任务创建和通知发送期间。

此库将确保通过REST API与Jira工作时的难忘体验。希望你会喜欢它。

用法

<?php
use Jira\Api;
use Jira\Api\Authentication\Basic;
use Jira\Issues\Walker;

$api = new Api(
    'https://your-jira-project.net',
    new Basic('yourname', 'password')
);

$walker = new Walker($api);
$walker->push(
	'project = "YOURPROJECT" AND (status != "closed" AND status != "resolved") ORDER BY priority DESC'
);

foreach ( $walker as $issue ) {
    var_dump($issue);
    // Send custom notification here.
}

安装

php composer.phar require dereuromark/jira-api-restclient

要求

许可

Jira REST API 客户端在MIT许可下发布。有关详细信息,请参阅捆绑的LICENSE文件。