Download the PHP package jakoch/php-trac-rpc without Composer
On this page you can find all versions of the php package jakoch/php-trac-rpc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-trac-rpc
TracRPC
The purpose of this class is to interact with the Trac API from a remote location by remote procedure calls.
Trac is a project management and bug/issue tracking system. http://trac.edgewall.org/
Trac by itself does not provide an API. You must install the XmlRpcPlugin. Trac then provides anonymous and authenticated access to the API via two protocols XML-RPC and JSON-RPC. http://trac-hacks.org/wiki/XmlRpcPlugin/
Requirements
- PHP 5.3.0 or higher
- The PHP Extensions "JSON" and "cURL" are required.
- Trac with XmlRpcPlugin
Features
- Make Requests to the TRAC API using the following request methods.
Installation
a) Download the ZIP from Github, then extract the library file and include it.
b) Installation via Composer
To add PHPTracRPC as a local, per-project dependency to your project, simply add jakoch/php-trac-rpc
to your project's composer.json
file.
{
"require": {
"jakoch/php-trac-rpc": "dev-master"
}
}
Usage
Step 1: include library
When you installed via Composer, please include the Composer Autoloader first and then instantiate the TracRPC class.
When you fetched the zip file, please include the lib directly.
Step 2: setup credentials and instantiate TracRPC
Step 3: do some requests
Single Call Example
Multi Call Example
Request Methods
- getRecentChangedWikiPages($date = 0)
- getWikiPage($name = '', $version = 0, $raw = true)
- getWikiPageInfo($name = '', $version = 0)
- getWikiPages()
- getRecentChangedTickets($date = 0)
- getTicket($id = '')
- getTicketFields()
- getTicketChangelog($id = '', $when = 0)
- getTicketActions($id = '')
- getWikiAttachments($action = 'list', $name = '', $file = '')
- getTicketAttachments($action = 'list', $id = '', $file = '', $desc = '', $replace = true)
- getWikiUpdate($action = 'create', $name = '', $page = '', $data = array())
- getTicketUpdate($action = 'create', $id = '', $data = array())
- getTicketSearch($query = '')
- getTicketComponent($action = 'get_all', $name = '', $attr = array())
- getTicketMilestone($action = 'get_all', $name = '', $attr = array())
- getTicketPriority($action = 'get_all', $name = '', $attr = '')
- getTicketResolution($action = 'get_all', $name = '', $attr = '')
- getTicketSeverity($action = 'get_all', $name = '', $attr = '')
- getTicketType($action = 'get_all', $name = '', $attr = '')
- getTicketVersion($action = 'get_all', $name = '', $attr = array())
- getTicketStatus()
- getSearch($query = '', $filter = array())
- getWikiTextToHTML($text = '')
- getSearchFilters()
- getApiVersion()
All versions of php-trac-rpc with dependencies
ext-json Version *
ext-xml Version *