Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beyondcode/nova-rss-card
Display custom RSS feeds on your Nova dashboard.
https://github.com/beyondcode/nova-rss-card
Last synced: 3 months ago
JSON representation
Display custom RSS feeds on your Nova dashboard.
- Host: GitHub
- URL: https://github.com/beyondcode/nova-rss-card
- Owner: beyondcode
- License: mit
- Archived: true
- Created: 2018-08-23T16:22:14.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-23T16:22:52.000Z (about 6 years ago)
- Last Synced: 2024-05-09T14:09:54.775Z (6 months ago)
- Language: PHP
- Size: 12.7 KB
- Stars: 14
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-laravel-nova - Nova RSS Card
README
# Nova RSS Card
[![Latest Version on Packagist](https://img.shields.io/packagist/v/beyondcode/nova-rss-card.svg?style=flat-square)](https://packagist.org/packages/beyondcode/nova-rss-card)
[![Total Downloads](https://img.shields.io/packagist/dt/beyondcode/nova-rss-card.svg?style=flat-square)](https://packagist.org/packages/beyondcode/nova-rss-card)Display custom RSS feeds on your Nova dashboard.
This also works great in combination with the [custom dashboard card](https://github.com/beyondcode/nova-custom-dashboard-card) for Nova.
![tinker screenshot](https://beyondco.de/github/nova-rss-card/screenshot.png)
## Installation
You can install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:
```bash
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`.
```php
// 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:
```php
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:
```php
(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
``` bash
composer test
```### Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
### Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
## Credits
- [Marcel Pociot](https://github.com/mpociot)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.