limetecbiotechnologies / redmineapibundle
Symfony Bundle to include the redmine api.
Installs: 1 487
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 2
Open Issues: 1
Type:symfony-bundle
Requires
- php: >=5.4.0
- kbsali/redmine-api: ^1.5
- symfony/framework-bundle: ~2.1|~3.0
Requires (Dev)
- phpunit/phpunit: 5.6.*|5.7.*
This package is not auto-updated.
Last update: 2024-11-15 20:31:18 UTC
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);