Laravel Asana Package

For the needs of a side project, I needed a Laravel package that allows me to use the Asana API. So I forked an existing package that was starting to date to update it and add what I needed.

You can find this package on my GitHub : Package Laravel Asana

Installation

Here is the command to install it via composer :

composer require sinepel/laravel-asana

Register package

Laravel

Once installed, you must register the Laravel Asana package in the Laravel Providers. Open the config/app.php file and look for the providers table

'providers' => [
    Sinepel\LaravelAsana\ServiceProvider::class,
]

Lumen

For Lumen, add the following line to the file bootstrap/app.php

$app->register(Sinepel\LaravelAsana\ServiceProvider::class);

Facade

This package also comes with a facade (or you can just use the asana() function). To save the facade, add it to the alias table of your config/app.php file.

'aliases' => [
    'Asana' => 'Sinepel\LaravelAsana\Facade\Asana',
]

Publishing the configuration file

Go to the root of your project on your device and run the following command

php artisan vendor:publish --provider="Sinepel\LaravelAsana\ServiceProvider" --tag=config

A new configuration file will be available in config/asana.php