toy-php/youtrack-client

Клиент API youtrack

0.1.7 2018-11-02 13:28 UTC

README

Клиент API youtrack

Установка

composer require toy-php/youtrack-client

Настройка подключения

\youtrack\core\Api::setup('YOUTRACK HOST', 'TOKEN');

Использование

$issues = \youtrack\aggregate\Issue::find()
    ->fields('id,summary,project(name)')
    ->top(10)
    ->all();
    
foreach ($issues as $issue) {
    echo 'ID - ' . $issue->id . "\n";
    echo 'Summary - ' . $issue->summary . "\n";
    echo 'Project name - ' . $issue->project->name . "\n\n\n";
}