2017 © Pedro Peláez
 

library redmine-api-client

A Redmine-Api Client

image

danielbadura/redmine-api-client

A Redmine-Api Client

  • Tuesday, December 29, 2015
  • by DavidBadura
  • Repository
  • 6 Watchers
  • 3 Stars
  • 33 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 3 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Redmine API Client

Build Status, (*1)

installation

composer require danielbadura/redmine-api-client

usage

You can initialize the client with the login of the redmine user., (*2)

// user credentials
$apiClient = new Client('redmine.com', 'admin', 'password');
// or with apikey
$apiClient = new Client('redmine.com', 'jdal5723n5j7987234jjfsd');

After this you are ready to go. Now you can get your needed repository and get the entities you want., (*3)

// to get the issue with id = 1
$apiClient->getIssueRepository()->find(1);
// get all issues
$apiClient->getIssueRepository()->findAll();

Creating new entities is really simple. Just create an object of this entity and fill the data. Then use the client to save it., (*4)

$issue = new Issue();
$issue->setSubject('New Issue');

$apiClient->getIssueRepository()->save($issue);

To update an entity just get it and modify it., (*5)

$issue = $apiClient->getIssueRepository()->find(1);
$issue->setSubject('New Issue Name');

$apiClient->getIssueRepository()->save($issue);

The Versions

29/12 2015

dev-master

9999999-dev

A Redmine-Api Client

  Sources   Download

MIT

The Requires

 

The Development Requires

by DanielBadura