Skip to content

dersam/RTPHPLib

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

RTPHPLib

Build Status

Provides an implementation of the Request Tracker API in PHP.

Requirements

  • PHP 5.3+ should work, but we only test PHP versions that are not EOL (7+). You really shouldn't be using PHP5 anymore.
  • curl

Installation

composer require dersam/rt-php-lib

Or just download and include RequestTracker.php.

Usage

See example.php for usage instructions.

See https://rt-wiki.bestpractical.com/wiki/REST 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.

Issues

Please report any issues at https://github.com/dersam/RTPHPLib/issues

Contributing

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

Tests

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.

About

PHP wrapper for the Request Tracker API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages