LaravelPackages.net
Acme Inc.
Toggle sidebar
hi-folks/laravel-dashboard-devto-tile

Tile for Spatie Laravel Dashboard to list DEV.to articles

10
0
v0.2.1
About hi-folks/laravel-dashboard-devto-tile

hi-folks/laravel-dashboard-devto-tile is a Laravel package for tile for spatie laravel dashboard to list dev.to articles. It currently has 0 GitHub stars and 10 downloads on Packagist (latest version v0.2.1). Install it with composer require hi-folks/laravel-dashboard-devto-tile. Discover more Laravel packages by hi-folks or browse all Laravel packages to compare alternatives.

Last updated

Tile for retrieving articles from DEV.to

Latest Version on Packagist

Tile for retrieving your articles from DEV.to.

This tile can be used on the Laravel Dashboard.

Installation

You can install the package via composer:

composer require hi-folks/laravel-dashboard-devto-tile

Usage

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

<x-dashboard>
    <livewire:devto-tile position="e7:e16" />
</x-dashboard>

Obtain your DEV.to API KEY

Go to https://dev.to/settings/account and create your API KEY. You need to store your api key in your .env file. Remember to avoid to commit .env file :) THe key for storing your api key is: DEVTO_TILE_APIKEY

DEVTO_TILE_APIKEY="yourapikeyfromdevto"

In config/dashboard.php please, add:

'tiles' => [
        'devto' => [
            'configurations' => [
                'default' => [
                    'api_key' => env('DEVTO_TILE_APIKEY'),
                ],
            ],
            'refresh_interval_in_seconds' => 5,
        ],
    ],

In order to retrieve articles from DEV.to automatically, you need to schedule your command. Go to Kernel.php file and add this line.

$schedule->command("dashboard:fetch-data-from-devto-api", [])->everyFiveMinutes();

The tile

If you completed the setup correctly you could see in your dashboard your new tile. Screenshot of the Tile with DEV.to articles

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

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

Star History Chart