定制 danielbadura/redmine-api-client 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

danielbadura/redmine-api-client

Composer 安装命令:

composer require danielbadura/redmine-api-client

包简介

A Redmine-Api Client

README 文档

README

Build Status

installation

composer require danielbadura/redmine-api-client

usage

You can initialize the client with the login of the redmine user.

// 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.

// 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.

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

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

To update an entity just get it and modify it.

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

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

统计信息

  • 总下载量: 40
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 6
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-25