mitkov-systems / ms-php-asana-api
A package that makes communicating with Asana's API easier.
0.2.0
2026-03-25 17:35 UTC
Requires
- guzzlehttp/guzzle: ^7.10
Requires (Dev)
- phpunit/phpunit: ^12.4
- vlucas/phpdotenv: ^5.6
This package is not auto-updated.
Last update: 2026-05-07 14:44:07 UTC
README
Making communication with Asana's API easier.
If you need a quick and easy way to make calls to the Asana API. This is the package for you.
Installation
composer require mitkov-systems/ms-php-asana-api
Getting started
use MitkovSystems\Asana\Client;
$client = new Client('your-personal-access-token');
print_r($client->workspaces());
Available methods from the client:
$client->workspaces(); // get workspaces
$client->projects(); // get projects
$client->projectTasks($projectGid); // get project tasks
$client->sections($projectGid); // get project sections
$client->sectionTasks($sectionGid); // get tasks for a given section
$client->createTask($data); // create task
$client->updateTask($taskGid, $data); // update task
$client->deleteTask($taskGid); // delete task
$client->addTaskToSection($sectionGid, $taskGid); // add task to section
$client->addCommentToTask($taskGid $text); // add comment to task
$client->deleteComment($commentGid); // delete comment
$client->request($method, $url, $data); // custom Asana API request
Issues
If you find issues with this package create a ticket in GitLab.