Download the PHP package nepda/youtrack-client without Composer
On this page you can find all versions of the php package nepda/youtrack-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nepda/youtrack-client
More information about nepda/youtrack-client
Files in nepda/youtrack-client
Package youtrack-client
Short Description A PHP YouTrack client library
License BSD-4-Clause
Informations about the package youtrack-client
YouTrack Client PHP Library
Attention! This library is based on the now-deprecated REST API for YouTrack. jetBrains has release a new version of their REST API. May be I'll create a new version of this library for the new API.
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.
The initial development was sponsored by Telematika GmbH. The current development is made by nepda.
The source of this library is released under the BSD license (see LICENSE for details).
Requirements
- PHP >= 5.4 (Tested with >= 5.6, Travis runs tests with
5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3 and 7.4) - curl
- simplexml
- json
- YouTrack 3.0+ with REST-API enabled (currently, the production system runs with YouTrack 2019.1)
Changelog
Please look into CHANGELOG for a list of the past releases.
Usage
With permanent token
Please look into the YouTrack documentation on how to create such a permanent token.
The $password
parameter has to be null
for permanent token login. This feature is dirty and will be fixed in version
2.*.
With deprecated username/password login
See ./examples
folder for more usage examples.
Usage with ZF2 ZendSkeletonApplication
In your /init_autoloader.php
From now on you can use YouTrack-Client-PHP-Library from any file in you ZF2-App.
Standalone setup with composer
Run the following commands to install composer and youtrack-client.
(Please checkout the latest composer setup on their page)
Create a ./my-youtrack-project/client.php
file with content:
$issue = $youtrack->getIssue('TEST-123');
// Now you can work with the issue or other $youtrack methods
} catch (\YouTrack\IncorrectLoginException $e) { echo 'Incorrect login or password.' . PHP_EOL; } sh curl -sS https://getcomposer.org/installer | php -- php composer.phar install sh ./vendor/bin/phpunit ./test
## Contributors
* [@jan0sch](https://github.com/jan0sch)
* [@jkswoods](https://github.com/jkswoods)
* [@Shyru](https://github.com/Shyru)
* [@nepda](https://github.com/nepda)
* [@richardhinkamp](https://github.com/richardhinkamp)
* [@Limelyte](https://github.com/Limelyte)
* [@1ed](https://github.com/1ed)
* [@openWebX](https://github.com/openWebX)
* [@wdamien](https://github.com/wdamien)
* [@angerslave](https://github.com/Angerslave)
(and more: https://github.com/nepda/youtrack-client/network/members)
All versions of youtrack-client with dependencies
ext-json Version >=1
lib-curl Version >=7
ext-simplexml Version *