thijskok / donedone-client

The TestMonitor DoneDone Client.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TestMonitor DoneDone Client

Latest Stable Version CircleCI Travis Build Code Coverage Code Quality StyleCI License

This package provides a very basic, convenient, and unified wrapper for the DoneDone REST api.

Table of Contents

Installation

To install the client you need to require the package using composer:

$ composer require testmonitor/donedone-client

Use composer's autoload:

require __DIR__.'/../vendor/autoload.php';

You're all set up now!

Usage

You'll have to instantiate the client using your credentials:

$donedone = new \TestMonitor\DoneDone\Client('email@server.com', 'API token');

Next, you can start interacting with DoneDone.

Examples

Get a list of DoneDone accounts:

$projects = $donedone->accounts();

Or creating a task, for example (using account 123 and project 456):

$task = $donedone->createTask(new \TestMonitor\DoneDone\Resources\Task([
    'title' => 'Some task',
    'description' => 'A better description',
    'status' => 1,
    'priority' => 2,
]), 123, 456);

Tests

The package contains integration tests. You can run them using PHPUnit.

$ vendor/bin/phpunit

Changelog

Refer to CHANGELOG for more information.

Contributing

Refer to CONTRIBUTING for contributing details.

Credits

License

The MIT License (MIT). Refer to the License for more information.

About

The TestMonitor DoneDone Client.

License:MIT License


Languages

Language:PHP 100.0%