The bugtracker YouTrack provides a REST-API. Because a lot of web applications are written in PHP I decided to write a client library for it. To make it easier for developers to write connectors to YouTrack.
Basically this is a port of the offical python api from Jetbrains. The initial development was sponsored by Telematika GmbH.
The source of this library is released under the BSD license (see LICENSE for details).
- PHP 5.3.x (Any version above 5 might work but I can't guarantee that.)
- curl
- simplexml
- YouTrack 3.0 with REST-API enabled
<?php
require_once("youtrackclient.php");
$youtrack = new \YouTrack\Connection("http://example.com", "login", "password");
$issue = $youtrack->get_issue("TEST-1");
...
The unit tests are incomplete but you can run them using phpunit
like this:
% phpunit test