Search by

creacoon / laravel-dashboard-gitlab-user-counts-tile

tomcoonen

GitLab Tile

Package info

github.com/creacoon/laravel-dashboard-gitlab-user-counts-tile

Homepage

pkg:composer/creacoon/laravel-dashboard-gitlab-user-counts-tile

Statistics

Installs: 114

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

2.0.2 2026-09-23 08:01 UTC

README

GitLab User Counts Tile

This tile displays user counts from GitLab, including assigned merge requests, review requested merge requests, and todos.

Installation

You can install the tile via composer:

composer require creacoon/laravel-dashboard-gitlab-user-counts-tile

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

Sign up at your GitLab instance to obtain GITLAB_API_TOKEN

// in config/dashboard.php

return [
    // ...
    'tiles' => [
        'gitlab' => [
            'api_token' => env('GITLAB_API_TOKEN'),
            'api_url' => env('GITLAB_API_URL', 'https://gitlab.com'),
            'specific_users' => array_filter(explode(',', env('GITLAB_SPECIFIC_USERS', ''))),
        ],
    ],
];

When specific_users is empty, the tile shows all active users that have at least one to-do, assigned merge request or review requested merge request. Blocked or deactivated users are never shown, even when listed in specific_users.

In app\Console\Kernel.php you should schedule the Creacoon\GitLabTile\FetchDataFromGitLabUserCountsCommand to run at your desired interval.

// in app/console/Kernel.php

protected function schedule(Schedule $schedule)
{
    // ...
    $schedule->command(\Creacoon\GitLabTile\FetchDataFromGitLabUserCountsCommand::class)->everyMinute();
}

Usage

In your dashboard view you use the livewire:gitlab-user-counts-tile component.

<x-dashboard>
    <livewire:gitlab-user-counts-tile position="a1" />
</x-dashboard>

Customizing the view

If you want to customize the view used to render this tile, run this command:

php artisan vendor:publish --provider="Creacoon\GitLabTile\GitLabUserCountsTileServiceProvider" --tag="dashboard-gitlab-user-counts-tile-views"```