1. Go to this page and download the library: Download visualbuilder/youtrack-cli library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
use Visualbuilder\YoutrackCli\Services\IssueService;
class DispatchTickets
{
public function __construct(private IssueService $issues) {}
public function handle(): void
{
$this->issues->createIssue(
project: 'NB',
summary: 'Performance regression on /reports',
description: 'Median page load 1.8s → 4.2s after merge of NB-980.',
type: 'Bug',
priority: 'P1',
);
}
}