PHP code example of mcmatters / redmine-api

1. Go to this page and download the library: Download mcmatters/redmine-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mcmatters / redmine-api example snippets




nt = new \McMatters\RedmineApi\RedmineClient('https://redmine.org', 'API_KEY');

$issue = $client->issue()->create([
    'project_id' => 1,
    'subject' => 'Foo',
    'description' => 'bar',
]);

$client->timeEntry()->create($issue['id'], '15min');