/YouTrack-Client-PHP-Library

A PHP client library for the popular YouTrack bugtracker.

Primary LanguagePHPBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

YouTrack Client PHP Library

Build Status BSD License

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).

Requirements

  • 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

Usage

<?php
require_once("youtrackclient.php");
$youtrack = new \YouTrack\Connection("http://example.com", "login", "password");
$issue = $youtrack->get_issue("TEST-1");
...

Tests

The unit tests are incomplete but you can run them using phpunit like this:

% phpunit test

Contributors