limetecbiotechnologies/redmineapibundle
Composer 安装命令:
composer require limetecbiotechnologies/redmineapibundle
包简介
Symfony Bundle to include the redmine api.
README 文档
README
This bundle integrate the Redmine API Wrapper into your Symfony Project
##Step1: Install RedmineApiBundle
The preffered way to install this bundle is to rely on composer.
{
"require": {
// ...
"limetecbiotechnologies/redmineapibundle": "~1.0"
}
}
##Step2: Enable the bundle
Finally, enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new LimetecBiotechnologies\RedmineApiBundle\RedmineApiBundle(), ); }
##Step3: Configure RedmineApiBundle
Add RedmineApiBundle settings in app/config/config.yml:
redmine_api: clients: firstclient: token: your-api-token url: http://example.org/api/v3/ secondclient: token: your-api-token url: http://example.com/api/v3/
The first client is defined automatically as your default client.
##Step4: Use the redmine api
you want to use the default client, you can easy getting the client by the "redmine_api" service-id.
$api = $this->get('redmine_api'); $api->issue->show($ticket);
If you want to get one of the other clients, you can getting the specific client by the "redmineapi.client.CLIENT_NAME" service id.
$api = $this->get('redmineapi.client.secondclient'); $api->issue->show($ticket);
统计信息
- 总下载量: 1.53k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-06-08