Download the PHP package kayschima/laravel-dashboard-footballdata-standings-tile without Composer
On this page you can find all versions of the php package kayschima/laravel-dashboard-footballdata-standings-tile. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kayschima/laravel-dashboard-footballdata-standings-tile
More information about kayschima/laravel-dashboard-footballdata-standings-tile
Files in kayschima/laravel-dashboard-footballdata-standings-tile
Package laravel-dashboard-footballdata-standings-tile
Short Description A tile for Laravel Dashboard that displays football standings of different leagues
License MIT
Homepage https://github.com/kayschima/laravel-dashboard-footballdata-standings-tile
Informations about the package laravel-dashboard-footballdata-standings-tile
A tile for Laravel Dashboard that displays football standings of different leagues and actual football livescores
This tile can used on the Laravel Dashboard to display standings from www.football-data.org.
License
The MIT License (MIT). Please see License File for more information.
Installation
You can install the tile via composer:
In the dashboard config file, you must add this configuration in the tiles key.
Sign up at https://www.football-data.org/ to obtain FOOTBALLDATA_API_KEY
.
Set FOOTBALL_LEAGUE
to a league shortcut of the football-data.org service (e.g. BL1
or PL
).
In app\Console\Kernel.php you should schedule
- the
Kayschima\FootballStandingsTile\Commands\FetchFootballStandingsDataCommand
and - the
Kayschima\FootballStandingsTile\Commands\FetchFootballLiveResultsDataCommand
to run every minute.
Views
In your dashboard views you use
- the
livewire:football-standings-tile
component and/or - the
livewire:football-live-results-tile
component.
An optional $highlight
-attribute to the livewire:football-standings-tile
triggers a simple highlighting of e.g. the local or favourite team what is expected to be a common use case for the tile.
For simplicity, this commit uses the id of the team, specific to every competition -- "4"
in this case for BVB @ 1. Bundesliga.