coding / sdk
CODING.net SDK for PHP
1.0.0
2022-01-05 06:02 UTC
Requires
- php: >=7.4
- ext-json: *
- guzzlehttp/guzzle: ^7.4
- illuminate/validation: ^8.67
Requires (Dev)
- fakerphp/faker: ^1.16
- mockery/mockery: ^1.4
- phpmd/phpmd: ^2.10
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.6
README
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";