PHPackages                             robbens/laravel-dashboard-sl - 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. robbens/laravel-dashboard-sl

ActiveLibrary

robbens/laravel-dashboard-sl
============================

Real time updates for public transport in Stockholm, Sweden.

2.0(5y ago)031[2 PRs](https://github.com/robbens/laravel-dashboard-sl/pulls)MITPHPPHP ^7.4

Since May 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/robbens/laravel-dashboard-sl)[ Packagist](https://packagist.org/packages/robbens/laravel-dashboard-sl)[ Docs](https://github.com/robbens/laravel-dashboard-sl)[ RSS](/packages/robbens-laravel-dashboard-sl/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (3)Versions (5)Used By (0)

Tile for Stockholm's public transport
=====================================

[](#tile-for-stockholms-public-transport)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ded42072b6e49bbbc134ad1732e15837314ce84fa86e2a5c44e5ae5390bd1f16/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f6262656e732f6c61726176656c2d64617368626f6172642d736c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/robbens/laravel-dashboard-sl)[![GitHub Tests Action Status](https://camo.githubusercontent.com/860f4f215663ce15a452abe9ec1768b2c64617e85c966650dac66fe1cc17bea3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f726f6262656e732f6c61726176656c2d64617368626f6172642d736c2f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/robbens/laravel-dashboard-sl/actions?query=workflow%3Arun-tests+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/24a2daefec5c130f5f5e31af60323d6ea5f1a66ab440ec0c05fc4ed19757f11e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f6262656e732f6c61726176656c2d64617368626f6172642d736c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/robbens/laravel-dashboard-sl)

A tile for [Laravel Dashboard](https://docs.spatie.be/laravel-dashboard) that shows real time public transport data from [Stockholms Lokaltrafik](https://sl.se).

[![img](docs/sl-tile.png)](docs/sl-tile.png)

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

[](#installation)

You can install the package via composer:

```
composer require robbens/laravel-dashboard-sl
```

Usage
-----

[](#usage)

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

```

```

Configure `config/dashboard.php`

```
[
    // ...
    'tiles' => [
        'sl' => [
            /**
             * API key to SL Real-time information 4
             *
             * @link https://www.trafiklab.se/api/sl-realtidsinformation-4
             */
            'api_key' => env('TRAFIKLAB_KEY'),

            /**
             * ID for the place for which the departures are to be collected, eg 9192 for Slussen.
             * This ID can be found using the "SL Location Lookup Console".
             *
             * @link https://www.trafiklab.se/api/sl-platsuppslag/konsol
             */
            'site_id' => 1079,

            /**
             * Optional label to show on the top of the tile.
             */
            'site_label' => 'Odenplan',

            /**
             * Get departures within the desired time window. Where the
             * time window is the number of minutes from now. Max 60.
             */
            'time_window' => 60,

            /**
             * Transport modes limit.
             */
            'buses' => [
                'total_limit' => 5,
                // Filter out early departures by minute. This is usually how long it takes to walk to the station.
                'early_departures_limit' => 5,
            ],
            'metros' => [
                'total_limit' => 5,
                'early_departures_limit' => null,
            ],
            'trains' => false,
        ],
    ]
]
```

Schedule the command in `app/Console/Kernel.php`.

```
protected function schedule(Schedule $schedule)
{
    $schedule->command(Robbens\SlTile\FetchDataFromSLApiCommand::class)->everyMinute();
}
```

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)

- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~128 days

Total

2

Last Release

2072d ago

Major Versions

v1.0 → 2.02020-09-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/4844fc0807ac0745b0dbb528ab6966fc775868ac442a698457026ab66e9bc513?d=identicon)[robbens](/maintainers/robbens)

---

Top Contributors

[![robbens](https://avatars.githubusercontent.com/u/12089594?v=4)](https://github.com/robbens "robbens (14 commits)")

---

Tags

dashboard-widgetlaravellaravel-dashboard-tilelaravel-packagephprobbenslaravel-dashboard-sl

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/robbens-laravel-dashboard-sl/health.svg)

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

###  Alternatives

[fidum/laravel-dashboard-chart-tile

Generic chart tiles for laravel dashboard

16234.7k1](/packages/fidum-laravel-dashboard-chart-tile)[spatie/laravel-dashboard-time-weather-tile

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

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

PHPackages © 2026

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