PHP wrapper for the Request Tracker API
Clone or download
dersam Merge pull request #74 from petski/FixSubjectContainingId
Fix for scenario in which subject contains an id.
Latest commit 3e952df Sep 18, 2018


Build Status

Provides an implementation of the Request Tracker API in PHP.


  • PHP 5.3+
  • curl


composer require dersam/rt-php-lib

Or just download and include RequestTracker.php.


See example.php for usage instructions.

See for information on available fields. Note that if a request type has mandatory fields, they are requested in the function call, or (in certain cases) automatically added to the request. So you don't need to specify the ticket id in content, or the type of action.


Please report any issues at


  • Fork the repository.
  • Make your changes (Adding tests makes you a good person!).
  • Submit pull requests against master.


Running phpunit from the project root will run the tests. The tests currently expect an RT instance running on localhost:8080. You can easily get a local instance by using the netsandbox/request-tracker docker container. If your instance is not at localhost, you can specify a different uri by setting the RT_ENDPOINT environment variable.