Download the PHP package rbibby/laravel-dashboard-news-tile without Composer
On this page you can find all versions of the php package rbibby/laravel-dashboard-news-tile. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rbibby/laravel-dashboard-news-tile
More information about rbibby/laravel-dashboard-news-tile
Files in rbibby/laravel-dashboard-news-tile
Package laravel-dashboard-news-tile
Short Description NewsApi.org tile for Laravel Dashboard
License MIT
Homepage https://github.com/rbibby/laravel-dashboard-news-tile
Informations about the package laravel-dashboard-news-tile
NewsApi.org Laravel Dashboard Tile
Displays latest news on your Laravel Dashboard using newsapi.org
This tile can be used on the Laravel Dashboard.
Installation
You can install the package via composer:
Configuration
In the dashboard
config file, you must add this configuration in the tiles
key.
The api-key
option should contain your API key from https://newsapi.org/. It is recommended this is set in an env variable.
The country-code
option sets which country to list news from. For a list of valid country codes, see the newsapi.org.uk documentation
The number-of-articles
option determines how many articles to show on the dashboard.
The refresh-interval-in-seconds
option determines how many seconds will pass before the dashboard tile is re-rendered.
In app\Console\Kernel.php
you should schedule the \RBibby\NewsTile\FetchDataFromApiCommand
to run. You can let it run every minute if you want. You could also run it less frequently if fast updates on the dashboard aren't that important for this tile.
Usage
In your dashboard view you use the livewire:news-tile
component.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- All Contributors
Treeware
This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.