beyondcode/nova-rss-card

This package is abandoned and no longer maintained. No replacement package was suggested.

A Laravel Nova card.

0.0.1 2018-08-23 16:22 UTC

This package is auto-updated.

Last update: 2021-05-08 00:43:56 UTC


README

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.