PHPackages                             hfw/asana - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. hfw/asana

ActiveLibrary[API Development](/categories/api)

hfw/asana
=========

A fluent library for Asana's REST API. Includes a Laravel facade.

5.0.0(1y ago)4153MITPHPPHP ~8.1

Since Feb 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hfw/asana)[ Packagist](https://packagist.org/packages/hfw/asana)[ RSS](/packages/hfw-asana/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (6)Dependencies (4)Versions (17)Used By (0)

Helix :: Asana
==============

[](#helix--asana)

A fluent PHP library for Asana's REST API

[![php](https://camo.githubusercontent.com/dffb1239803515229d04704945d365b1842605c52afb7a0675ff4f335cc60e42/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322d363636393939)](https://www.php.net)[![stable](https://camo.githubusercontent.com/e0f2c13fbe25d72919b8c14b087600e1d5535e7b0fb5a6c50cd72a857c3a17a8/68747470733a2f2f706f7365722e707567782e6f72672f6866772f6173616e612f76)](https://packagist.org/packages/hfw/asana)[![unstable](https://camo.githubusercontent.com/164f14876d7cfa4a077cefbfc8aeec9933ff1ad7da09af6925c61c6037a8324b/68747470733a2f2f706f7365722e707567782e6f72672f6866772f6173616e612f762f756e737461626c65)](https://packagist.org/packages/hfw/asana)[![score](https://camo.githubusercontent.com/72b45a9d10029f43cb93bbfff800fd31662b313c5b67ddd6ded33f216ddec30e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6866772f6173616e612f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/hfw/asana)[![downloads](https://camo.githubusercontent.com/fe5eac0c426775115bd45eb09f4d59cd4240e03fc487042035876c62b1a3b415/68747470733a2f2f706f7365722e707567782e6f72672f6866772f6173616e612f646f776e6c6f616473)](https://packagist.org/packages/hfw/asana)[![license](https://camo.githubusercontent.com/c92036bf5b68c97fd5d49bf2af64690f5cf50d3c18ccc3273163132239ef6258/68747470733a2f2f706f7365722e707567782e6f72672f6866772f6173616e612f6c6963656e7365)](LICENSE.txt)

Documentation:

```
composer require hfw/asana:6.x-dev
```

For Laravel, see [/src/Api/Laravel](src/Api/Laravel)

Introduction
------------

[](#introduction)

```
use Helix\Asana\Api;

$api = new Api( ACCESS TOKEN );
```

The `Api` instance is the central access point for entities, and pools entities to avoid redundant network calls and prevent object duplication.

It's also used as a library-wide factory. Subclassing `Api` and overriding `factory()` lets you return whatever you want for any given endpoint.

You don't need to call `new` outside of instantiating the `Api` class. All library objects are injected with the `Api` instance and use `factory()` to give you what you want.

Example: You
------------

[](#example-you)

```
$me = $api->getMe();
echo $me->getUrl();
```

Example: Workspaces
-------------------

[](#example-workspaces)

```
// if you're only in one workspace, then it's a safe default
$workspace = $api->getWorkspace();

// or you can set a default
$api->setWorkspace( GID );
$workspace = $api->getWorkspace();

// or you can get a specific workspace any time
$workspace = $api->getWorkspace( GID );
```

Example: Projects
-----------------

[](#example-projects)

```
// create a project
$project = $workspace->newProject()
                     ->setName('Test Project')
                     ->setNotes('A test project.')
                     ->setOwner($me)
                     ->create();
echo $project->getUrl();

// get a project
$project = $api->getProject( GID );
```

Example: Tasks
--------------

[](#example-tasks)

```
// create a task
$task = $project->newTask()
                ->setAssignee($me)
                ->setName('Test Task')
                ->setNotes('A test task.')
                ->create();
echo $task->getUrl();

// iterate your tasks
$taskList = $me->getTaskList();
foreach ($taskList as $task){
    // ...
}
```

Class Diagram
-------------

[](#class-diagram)

[![](https://camo.githubusercontent.com/690e3496967aafd4b544ddb17eb8a2ac32c94a1e0900b49290d68e1ff01de6a1/68747470733a2f2f6866772e6769746875622e696f2f6173616e612f636c61737365732e706e67)](https://hfw.github.io/asana/inherits.html)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance42

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~91 days

Recently: every ~162 days

Total

16

Last Release

555d ago

Major Versions

3.1.0 → 4.0.02022-10-13

4.0.1 → 5.0.0-beta2023-01-22

v5.x-dev → 6.0.0-alpha2024-09-20

PHP version history (4 changes)3.0.0PHP ~7.3

4.0.0PHP ~7.4|~8.1

5.0.0-betaPHP ~8.1

6.0.0-alphaPHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/8cde1206945ba9660771b35de15d0bea7865c47594e0b5fabfa8590d6bd18172?d=identicon)[yoosefi](/maintainers/yoosefi)

---

Top Contributors

[![yoosefi](https://avatars.githubusercontent.com/u/2010434?v=4)](https://github.com/yoosefi "yoosefi (89 commits)")

---

Tags

laravelasana

### Embed Badge

![Health badge](/badges/hfw-asana/health.svg)

```
[![Health](https://phpackages.com/badges/hfw-asana/health.svg)](https://phpackages.com/packages/hfw-asana)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69333.0M114](/packages/algolia-algoliasearch-client-php)[atymic/twitter

Twitter API for PHP &amp; Laravel

945555.4k2](/packages/atymic-twitter)[commercetools/commercetools-sdk

The official PHP SDK for the commercetools Composable Commerce APIs

19281.5k](/packages/commercetools-commercetools-sdk)[webit/w-firma-api

wFirma.pl API

1820.2k](/packages/webit-w-firma-api)[bushlanov-dev/max-bot-api-client-php

Max Bot API Client library

281.6k](/packages/bushlanov-dev-max-bot-api-client-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
