timkley / awork-php-sdk
A PHP HTTP Client for the awork API
Installs: 2 012
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 2
Open Issues: 0
Requires
- php: ^8.2|^8.3
- guzzlehttp/guzzle: ^7.0
- illuminate/http: ^v11.3.1
- nesbot/carbon: ^3.8
Requires (Dev)
- pestphp/pest: ^v3.1.0
- phpstan/phpstan: ^1.8
README
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.