timkley/awork-php-sdk

A PHP HTTP Client for the awork API

0.2.1 2024-11-21 08:50 UTC

This package is auto-updated.

Last update: 2024-12-23 14:59:44 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.