Skip to content

coding/coding-sdk-php

Repository files navigation

CODING SDK for PHP

codecov CI Total Downloads PHP Version Require

Install

composer require coding/sdk

Examples

Create Iteration

<?php

require 'vendor/autoload.php';

use Coding\Client;
use Coding\Iteration;

$client = new Client();
$projectName = 'project-foo';
$client->setProjectName($projectName);
$client->setProjectToken('c127894e5a851cef22dc317f882dfb9ca6054321');

$iteration = new Iteration($client);
$result = $iteration->create([
    'Name' => 'Sprint 1',
]);
$teamDomain = 'my-team';
echo "https://${teamDomain}.coding.net/p/{$projectName}/iterations/${result['Code']}/issues\n";

Resources