PHPackages                             ashbakernz/laravel-dashboard-spotify-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ashbakernz/laravel-dashboard-spotify-tile

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ashbakernz/laravel-dashboard-spotify-tile
=========================================

Displays data from spotfiy on a tile for spatie/laravel-dashboard

1.1.0(4y ago)927111[3 issues](https://github.com/ashbakernz/laravel-dashboard-spotify-tile/issues)MITPHPPHP ^7.4CI failing

Since May 3Pushed 4y ago1 watchersCompare

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

READMEChangelog (8)Dependencies (2)Versions (9)Used By (0)

A tile to display infomation from Spotify
=========================================

[](#a-tile-to-display-infomation-from-spotify)

[![Latest Version on Packagist](https://camo.githubusercontent.com/55eef97878891ab05090b11c7f2a1d169e9364a13d70a5be7a814509d286e6a0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61736862616b65726e7a2f6c61726176656c2d64617368626f6172642d73706f746966792d74696c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ashbakernz/laravel-dashboard-spotify-tile)[![GitHub Tests Action Status](https://camo.githubusercontent.com/0f12e4f1fbbe23b011dc31706a37b18feb1e0071e8bd8e036599e5d741ba5c52/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f61736862616b65726e7a2f6c61726176656c2d64617368626f6172642d73706f746966792d74696c652f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/ashbakernz/laravel-dashboard-spotify-tile/actions?query=workflow%3Arun-tests+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/09dbab38bad7057f5e6bb91ebfff7bbbdf62474a23ebae773e4f6c07cb775a1a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61736862616b65726e7a2f6c61726176656c2d64617368626f6172642d73706f746966792d74696c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ashbakernz/laravel-dashboard-spotify-tile)

This tile displays "now playing" infomation from spotify.

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

[![laravel dashboard spotify tile](https://camo.githubusercontent.com/a0a3ab66057494b84f207b82a46afaef0318d9344501175779e4616f11bf0a8a/68747470733a2f2f61736862616b65722e6465762f6173736574732f7061636b616765732f6c61726176656c2d64617368626f6172642d73706f746669792d74696c652e706e67)](https://camo.githubusercontent.com/a0a3ab66057494b84f207b82a46afaef0318d9344501175779e4616f11bf0a8a/68747470733a2f2f61736862616b65722e6465762f6173736574732f7061636b616765732f6c61726176656c2d64617368626f6172642d73706f746669792d74696c652e706e67)

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

[](#installation)

You can install the package via composer:

```
composer require ashbakernz/laravel-dashboard-spotify-tile
```

In the dashboard config file, you must add this configuration in the tiles key.

```
    'spotify' => [
        'client_id' => env('SPOTIFY_CLIENT_ID'),
        'secret' => env('SPOTIFY_SECRET'),
        'refresh_interval_in_seconds' => 60,
    ]
```

#### Getting `SPOTIFY_CLIENT_ID` and `SPOTIFY_SECRET`

[](#getting-spotify_client_id-and-spotify_secret)

Sign up at  and register your application to obtain `SPOTIFY_CLIENT_ID` and `SPOTIFY_SECRET`.

Once you have setup your application please go to the [spotify dashboard](https://developer.spotify.com/dashboard/applications), select your application and click "EDIT SETTINGS" in the top right. You will then need to add the following urls based on your environments to the "Redirect URIs " section and then hit save. This will allow us to authenticate correctly in the next step.

Redirect URI example:

```
https://yourdomain.com/spotify/callback
```

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

```

```

Once this is complete please head to the `/spotify/authorize` route on your dashboard in a browser and this will allow you to authenicate your spotify account.

In `app\Console\Kernel.php` you should schedule the following commands.

```
protected function schedule(Schedule $schedule)
{
    // ...
            $schedule->command(\Ashbakernz\SpotifyTile\FetchDataFromSpotifyCommand::class)->everyMinute();
            $schedule->command(\Ashbakernz\SpotifyTile\RefreshAccessTokenSpotifyCommand::class)->everyFifteenMinutes();
}
```

Setup is complete!

Bugs
----

[](#bugs)

If the tile is displaying incorrectly please head to the `/spotify/refresh` route in a browser to refresh your spotify access token manually. (a command is already setup to do this every 30 mins via scheduler)

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)

- [Ash Baker](https://github.com/ashbakernz)
- [Spatie](https://github.com/spatie/) for [laravel-dashboard-skeleton-tile](https://github.com/spatie/laravel-dashboard-skeleton-tile)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Every ~62 days

Recently: every ~108 days

Total

8

Last Release

1814d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/24341f6bc8fb15ced703e167314967e252b7ca5d713b5afab0c95bcae03e5fb6?d=identicon)[ashbakernz](/maintainers/ashbakernz)

---

Top Contributors

[![justashton](https://avatars.githubusercontent.com/u/13672085?v=4)](https://github.com/justashton "justashton (7 commits)")[![bnoordsij](https://avatars.githubusercontent.com/u/8420034?v=4)](https://github.com/bnoordsij "bnoordsij (4 commits)")[![proclame](https://avatars.githubusercontent.com/u/2464413?v=4)](https://github.com/proclame "proclame (2 commits)")[![octoper](https://avatars.githubusercontent.com/u/6823226?v=4)](https://github.com/octoper "octoper (1 commits)")[![xyNNN](https://avatars.githubusercontent.com/u/1929750?v=4)](https://github.com/xyNNN "xyNNN (1 commits)")

---

Tags

ashbakernzlaravel-dashboard-spotify-tile

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-dashboard-time-weather-tile

A tile for Laravel Dashboard that displays the time and the weather

1212.6k1](/packages/spatie-laravel-dashboard-time-weather-tile)

PHPackages © 2026

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