Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.
/ nova-rss-card Public archive

Display custom RSS feeds on your Nova dashboard.

License

Notifications You must be signed in to change notification settings

beyondcode/nova-rss-card

Repository files navigation

Nova RSS Card

Latest Version on Packagist Total Downloads

Display custom RSS feeds on your Nova dashboard.

This also works great in combination with the custom dashboard card for Nova.

tinker screenshot

Installation

You can install the package in to a Laravel app that uses Nova via composer:

composer require beyondcode/nova-rss-card

Next up, you must register the card with Nova. This is typically done in the cards method of the NovaServiceProvider.

// in app/Providers/NovaServiceProvder.php

// ...
public function cards()
{
    return [
        // ...
        new RssCard('https://feed.laravel-news.com/'),
    ];
}

Custom layout

You can customize the RSS feed card height by specifying it as the second parameter in the constructor, like this:

new RssCard('https://feed.laravel-news.com/', '500px),

Custom amount of items

To customize the amount of items to show on your RSS feed card, you can set a limit property as a meta attribute on your RSS feed card, like this:

(new RssCard('https://feed.laravel-news.com/', '500px))->withMeta([
    'limit' => 10
]),

Usage

Just visit your Nova dashboard and you'll see the latest entries from your RSS feeds.

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

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

Credits

License

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