tkaratug/laravel-dashboard-trello-tile

Trello tile for Laravel Dashboard

1.2.0 2023-02-19 15:11 UTC

This package is auto-updated.

Last update: 2023-09-19 16:27:22 UTC


README

Latest Version on Packagist Software License Total Downloads

A tile for Laravel Dashboard that displays tasks from Trello.

Laravel Dashboard Trello Tile

Install

Via Composer

$ composer require tkaratug/laravel-dashboard-trello-tile

Usage

In the dashboard config file, you must add this configuration in the tiles key. The list_id should be any list id from Trello that you want to display on the dashboard.

// in config/dashboard.php

return [
    // ...
    'tiles' => [
        'trello' => [
            'trello_key' => env('TRELLO_API_KEY'),
            'trello_token' => env('TRELLO_API_TOKEN'),
            'list_id' => env('TRELLO_LIST_ID'),
            'refresh_interval_in_seconds' => 30,
        ],
    ],
];

In app\Console\Kernel.php you should schedule the Tkaratug\TrelloTile\Commands\FetchTrelloCardsCommand to run every x minutes.

// in app/console/Kernel.php

protected function schedule(Schedule $schedule)
{
    $schedule->command(\Tkaratug\TrelloTile\FetchTrelloCardsCommand::class)->everyThirtyMinutes();
}

In your dashboard view you use the livewire:trello-tile component.

<x-dashboard>
    <livewire:trello-tile position="a1" />
</x-dashboard>

You can specify the number of tasks you want to be displayed on your dashboard with count attribute.

<x-dashboard>
    <livewire:trello-tile position="a1" count="5" />
</x-dashboard>

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email tkaratug@hotmail.com.tr instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.