PHP code example of coding / sdk

1. Go to this page and download the library: Download coding/sdk 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/ */

    

coding / sdk example snippets




oding\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";