this is backlog api v2 wrapper with API Key.
Install the "atomita/backlog-v2" using the composer.
require {composer install dir} . "/vendor/autoload.php";
use \atomita\Backlog;
use \atomita\BacklogException;
$backlog = new Backlog('space-name', 'api-key');
try{
$space = $backlog->space->get();
var_dump($space);
$comment = $backlog->issues->param('issue id')->comments->post(['content' => 'comment message']));
var_dump($comment);
}
catch(BacklogException $e){
// error
}
This is released under the LGPLv3, see LICENSE.