PHPackages                             giagara/laravel-asana-webhook - 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. giagara/laravel-asana-webhook

ActiveLibrary[API Development](/categories/api)

giagara/laravel-asana-webhook
=============================

Laravel asana webhook integration

1.0.4(3y ago)47MITPHPPHP ^8.0

Since Apr 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/giagara/laravel-asana-webhook)[ Packagist](https://packagist.org/packages/giagara/laravel-asana-webhook)[ Docs](https://github.com/giagara/asana-webhook)[ RSS](/packages/giagara-laravel-asana-webhook/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (7)Versions (7)Used By (0)

Laravel asana webhook integration
=================================

[](#laravel-asana-webhook-integration)

[![CI/CD](https://github.com/giagara/laravel-asana-webhook/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/giagara/laravel-asana-webhook/actions/workflows/main.yml/badge.svg?branch=main)[![Packagist](https://camo.githubusercontent.com/9ae14bf9bea369f329c29e53b171c072f6e3703ed33d1c6b93a6e973c5a9cf6d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f676961676172612f6c61726176656c2d6173616e612d776562686f6f6b2e737667)](https://camo.githubusercontent.com/9ae14bf9bea369f329c29e53b171c072f6e3703ed33d1c6b93a6e973c5a9cf6d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f676961676172612f6c61726176656c2d6173616e612d776562686f6f6b2e737667)[![codecov](https://camo.githubusercontent.com/013878558d40a4681af6990ee0423f843ec331208becc406976c593d75e5ceb3/68747470733a2f2f636f6465636f762e696f2f67682f676961676172612f6c61726176656c2d6173616e612d776562686f6f6b2f67726170682f62616467652e7376673f746f6b656e3d454c4b31393548354149)](https://codecov.io/gh/giagara/laravel-asana-webhook)

This package let you integrate easily with Asana Webhooks.

Installation
------------

[](#installation)

Install the package via composer:

```
composer require giagara/laravel-asana-webhook
```

Publish config file with

```
php artisan vendor:publish --tags=asana-webhook
```

Usage
-----

[](#usage)

First of all you need to configure the personal access token to communicate with Asana. You can get it here:

Add it in your .env file

```
ASANA_PERSONAL_ACCESS_TOKEN=your_token
```

Configure the routing by adding items to the `route` array in config file.

```
'routes' => [
    'webhook' => AnInvokableClass::class
],
```

Alternatively the configuration can support name and middlewares

```
'routes' => [
    'webhook' => [
        'class' => AnInvokableClass::class,
        'name' => 'webhook-1',
        'middleware' => [CustomMiddleware::class],
    ]
]
```

NOTE: the invokable class must implements `AsanaActionInterface`. NOTE: the route is forced to use `api/` prefix so, in this case, the final path will be `api/webhook`.

Example:

```
use Giagara\AsanaWebhook\Contracts\AsanaActionInterface;

class FakeInvokableClass implements AsanaActionInterface
{
    public function __invoke(array $payload) : void
    {

        // do something

    }

}
```

After this the route api/webhook will be mapped to your invokable class.

Available commands
------------------

[](#available-commands)

### Webhook list

[](#webhook-list)

```
php artisan asana:list-webhook
```

NOTE: For this feature create `ASANA_WORKSPACE_ID` field in .env file.

get workspace id by calling [this url](https://app.asana.com/api/1.0/workspaces)

### Webhook creation

[](#webhook-creation)

To create a new webhook in Asana you can use the `CreateWebhookCommand` by calling:

```
php artisan asana:create-webhook
```

It will ask for resource id (see Asana documentation) and target url (that should be already reachable by Asana).

You can pass the parameters in command directly with:

```
php artisan asana:create-webhook --resource=1234 --target=https://example.com/api/webhook
```

```
php artisan asana:create-webhook --resource=1234 --route=route-name
```

The `--route` parameter is the route name: see `php artisan route:list`

### Delete Webhook

[](#delete-webhook)

```
php artisan asana:delete-webhook {webhook_gid}
```

### TODO

[](#todo)

- Create webhook list command
- Delete a webhook via command
- Add middleware to route configs
- Add name to route config
- Trigger via route name

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Garavaglia Giacomo](https://github.com/giagara)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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 ~0 days

Total

5

Last Release

1106d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c3f4bda0f94acf4463230e0420a7e991944a86f10a94d34e2ac4ba526f9ae0ea?d=identicon)[giagara](/maintainers/giagara)

---

Top Contributors

[![giagara](https://avatars.githubusercontent.com/u/79515022?v=4)](https://github.com/giagara "giagara (29 commits)")

---

Tags

laravelasanagiagara

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/giagara-laravel-asana-webhook/health.svg)

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

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[api-ecosystem-for-laravel/dingo-api

A RESTful API package for the Laravel and Lumen frameworks.

3121.5M10](/packages/api-ecosystem-for-laravel-dingo-api)[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[kirschbaum-development/laravel-openapi-validator

Automatic OpenAPI validation for Laravel HTTP tests

581.1M5](/packages/kirschbaum-development-laravel-openapi-validator)

PHPackages © 2026

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