beleneglorion/silex-redmine-api-provider

This package is abandoned and no longer maintained. No replacement package was suggested.

Silex ServiceProvider for Redmine Api

Installs: 24

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 1

pkg:composer/beleneglorion/silex-redmine-api-provider

dev-master 2014-05-16 15:08 UTC

This package is not auto-updated.

Last update: 2020-01-20 03:37:06 UTC


README

Provider to use Redmine Api with Silex

Install

You have to add to your composer.json file:

"beleneglorion/silex-redmine-api-provider": "dev-master"

Registering

$app->register(new Hinatachii\Silex\Provider\RedmineServiceProvider());

Configuration

You need to set the configuration for the api :

$app['redmine.options'] = array(
    'url'     => "http://redmine.example.org",
    'apikey'   => "123456789abcdef"
);

Use in controllers

$app->get('/index', function (Request $request) use ($app) {

    $projects = $app['redmine']->api('project')->all();
    $issue = $app['redmine']->api('issue')->show($issueId);
    $issues = $app['redmine']->api('issue')->all();
})