tkaratug / laravel-dashboard-trello-tile
Trello tile for Laravel Dashboard
Requires
- php: ^8.2|^8.1|^8.0|^7.4
- spatie/laravel-dashboard: ^2.1
Requires (Dev)
- phpunit/phpunit: ^9.4
This package is auto-updated.
Last update: 2024-11-19 19:02:05 UTC
README
A tile for Laravel Dashboard that displays tasks from Trello.
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.