PHPackages                             rbibby/laravel-dashboard-news-tile - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. rbibby/laravel-dashboard-news-tile

ActiveLibrary[Admin Panels](/categories/admin)

rbibby/laravel-dashboard-news-tile
==================================

NewsApi.org tile for Laravel Dashboard

v1.0.0(5y ago)13[2 issues](https://github.com/rbibby/laravel-dashboard-news-tile/issues)MITPHPPHP ^7.4CI failing

Since Nov 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/rbibby/laravel-dashboard-news-tile)[ Packagist](https://packagist.org/packages/rbibby/laravel-dashboard-news-tile)[ Docs](https://github.com/rbibby/laravel-dashboard-news-tile)[ RSS](/packages/rbibby-laravel-dashboard-news-tile/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

NewsApi.org Laravel Dashboard Tile
==================================

[](#newsapiorg-laravel-dashboard-tile)

[![Packagist Version](https://camo.githubusercontent.com/719cb6234390c2a4b2c9eb577ef661d5dec3c8e4effa8bb28f909a464f9f3bb0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7262696262792f6c61726176656c2d64617368626f6172642d6e6577732d74696c653f636f6c6f723d253233343239394531267374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/719cb6234390c2a4b2c9eb577ef661d5dec3c8e4effa8bb28f909a464f9f3bb0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7262696262792f6c61726176656c2d64617368626f6172642d6e6577732d74696c653f636f6c6f723d253233343239394531267374796c653d666f722d7468652d6261646765)[![GitHub license](https://camo.githubusercontent.com/cc2d8acef1ee71b99cd5ea3d1c30e32e93286caba146297af45b7c6d64fe7540/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7262696262792f6c61726176656c2d64617368626f6172642d6e6577732d74696c653f636f6c6f723d253233343239394531267374796c653d666f722d7468652d6261646765)](https://github.com/rbibby/laravel-dashboard-news-tile/blob/master/LICENCE)[![GitHub Workflow Status](https://camo.githubusercontent.com/c11234e1ae08a16a64c503182675df956ac60fb423c51b553e55f1ce594c34e5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7262696262792f6c61726176656c2d64617368626f6172642d6e6577732d74696c652f52756e25323074657374733f636f6c6f723d343239394531267374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/c11234e1ae08a16a64c503182675df956ac60fb423c51b553e55f1ce594c34e5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7262696262792f6c61726176656c2d64617368626f6172642d6e6577732d74696c652f52756e25323074657374733f636f6c6f723d343239394531267374796c653d666f722d7468652d6261646765)

[![Buy us a tree](https://camo.githubusercontent.com/15453546808b5ea47b48633f72f490420e2e41b885556eee95d7e88f4a754418/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54726565776172652d2546302539462538432542332d6c69676874677265656e3f7374796c653d666f722d7468652d6261646765)](https://plant.treeware.earth/rbibby/laravel-dashboard-news-tile)

Displays latest news on your Laravel Dashboard using newsapi.org

This tile can be used on [the Laravel Dashboard](https://docs.spatie.be/laravel-dashboard).

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require rbibby/laravel-dashboard-news-tile
```

Configuration
-------------

[](#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 . 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](https://newsapi.org/docs/endpoints/top-headlines)

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.

```
// config/dashboard.php

return [
    // ...
    'tiles' => [
        'news' => [
            'api-key' => env('NEWS_API_KEY'),
            'country-code' => 'gb',
            'number-of-articles' => 10,
            'refresh-interval-in-seconds' => 60,
        ],
    ],
];
```

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.

```
// app/Console/Kernel.php

protected function schedule(Schedule $schedule)
{
    // ...
    $schedule->command(\RBibby\NewsTile\FetchDataFromApiCommand::class)->everyMinute();
}
```

Usage
-----

[](#usage)

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

```

```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

Treeware
--------

[](#treeware)

This package is [**Treeware**](https://treeware.earth). If you use it in production, then we ask that you [**buy the world a tree**](https://plant.treeware.earth/rbibby/laravel-dashboard-news-tile) to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2008d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4687015?v=4)[Ryan Bibby](/maintainers/rbibby)[@rbibby](https://github.com/rbibby)

---

Top Contributors

[![rbibby](https://avatars.githubusercontent.com/u/4687015?v=4)](https://github.com/rbibby "rbibby (14 commits)")

---

Tags

laravellaravel-dashboardnewsnews-apilaravellaravel-dashboardrbibbylaravel-dashboard-news-tilenews-api

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rbibby-laravel-dashboard-news-tile/health.svg)

```
[![Health](https://phpackages.com/badges/rbibby-laravel-dashboard-news-tile/health.svg)](https://phpackages.com/packages/rbibby-laravel-dashboard-news-tile)
```

###  Alternatives

[fidum/laravel-dashboard-chart-tile

Generic chart tiles for laravel dashboard

16234.7k1](/packages/fidum-laravel-dashboard-chart-tile)[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)[lara-zeus/tartarus

simple multi tenants

112.6k](/packages/lara-zeus-tartarus)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
