A simple Object Oriented wrapper for Redmine API, written with PHP5.
Uses Redmine API.
- Follows PSR-0 conventions and coding standard: autoload friendly
- API entry points implementation state :
- OK Attachments
- NOK Groups
- OK Issues
- OK Issue Categories
- NOK Issue Relations
- OK Issue Statuses
- OK News
- OK Projects
- NOK Project Memberships
- OK Queries
- OK Roles
- OK Time Entries
- OK Trackers
- OK Users
- OK Versions
- PHP >= 5.3.2 with cURL extension,
The first step to use php-redmine-api
is to download composer:
$ curl -s http://getcomposer.org/installer | php
Then create a composer.json file in the root of your project:
{
"require": {
"kbsali/redmine-api": "dev-master"
}
}
... and install your dependencies using:
$ php composer.phar install
<?php
// This file is generated by Composer
require_once 'vendor/autoload.php';
$client = new Redmine\Client('http://redmine.example.com', '1234567890abcdfgh');
$client->api('user')->all();
$client->api('user')->listing();
$client->api('issue')->create(array(
'project_id' => 'test',
'subject' => 'some subject',
'description' => 'a long description blablabla',
'assigned_to' => 'user1',
));
see example.php
- Thanks to Thomas Spycher for the 1st version of the class.
- Thanks to Thibault Duplessis aka. ornicar for the php-github-api library, great source of inspiration!