timkley/awork-php-sdk

A PHP HTTP Client for the awork API

0.1.0 2024-07-11 10:07 UTC

README

Latest Version on Packagist GitHub Tests Action Status Total Downloads

This is a wrapper around the awork API.

Installation

Requirements

PHP 8.2 and above

With composer

composer require timkley/awork-php-sdk

Usage

You need an API token to use the awork API.

<?php

use Awork\Awork;

$awork = new Awork('your-token');

// Get all users
$awork->users()->get();

// Get a specific project
$awork->projects()->getProject('your-product-uuid');

// Post a comment on a specific task
$awork->comments()->create('tasks', 'your-task-uuid', 'Your message');

Testing

./vendor/bin/pest

Credits

I took a lot of inspiration from existing packages like mailgun/mailgun-php or lepikhinb/fathom-api.

Thanks for contributing to open source!

License

The MIT License (MIT). Please see License File for more information.