Download the PHP package jeffersongoncalves/laravel-github-stats without Composer
On this page you can find all versions of the php package jeffersongoncalves/laravel-github-stats. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeffersongoncalves/laravel-github-stats
More information about jeffersongoncalves/laravel-github-stats
Files in jeffersongoncalves/laravel-github-stats
Package laravel-github-stats
Short Description Self-hosted Laravel package that serves dynamic SVG cards with your GitHub statistics. Replace unreliable third-party services with your own.
License MIT
Informations about the package laravel-github-stats
Laravel GitHub Stats
Self-hosted Laravel package that serves dynamic SVG cards with your GitHub statistics. Replace unreliable third-party services (github-readme-stats, streak-stats, github-profile-trophy) with your own private service.
Features
- Stats Card — Total Stars, Commits, PRs, Issues, Followers
- Top Languages Card — Horizontal bar chart with top 8 languages
- Streak Card — Current Streak, Longest Streak, Total Contributions
- Trophies Card — Achievement badges with rank levels (S/A/B/C/D)
- 6 Built-in Themes — tokyonight, dark, radical, merko, gruvbox, onedark
- Custom Colors — Override any color via query parameters
- Aggressive Caching — Two-layer cache (4h data + 1h SVG)
- Username Locked — Service locked to a single username via
.env - Background Refresh — Scheduled command to keep cache warm
Installation
Publish the config file:
Configuration
Add to your .env:
Create a Personal Access Token with read:user scope. Add repo scope if you want private repository stats.
Config Options
Endpoints
| Method | Route | Description | Response |
|---|---|---|---|
| GET | /api/stats |
GitHub stats card | SVG |
| GET | /api/top-langs |
Top languages card | SVG |
| GET | /api/streak |
Contribution streak card | SVG |
| GET | /api/trophies |
Achievement trophies card | SVG |
| GET | /api/health |
Service health check | JSON |
Query Parameters
| Param | Default | Options |
|---|---|---|
theme |
tokyonight |
dark, radical, merko, gruvbox, onedark, tokyonight |
hide_border |
false |
true, false |
bg_color |
per theme | Any hex (without #) |
title_color |
per theme | Any hex |
text_color |
per theme | Any hex |
icon_color |
per theme | Any hex |
Usage in GitHub README
Cache Refresh
The package includes a scheduled command to keep the cache warm:
Add to your scheduler (in routes/console.php or app/Console/Kernel.php):
Deployment
Option A — VPS with Forge/Ploi
- Provision a small VPS (1 vCPU, 1GB RAM)
- Deploy your Laravel app with this package
- Set
.envvariables - Setup Redis for caching
- Configure scheduler:
* * * * * php artisan schedule:run - Point subdomain:
stats.yourdomain.com - SSL via Let's Encrypt
Option B — Docker
Testing
Static Analysis
Code Formatting
Changelog
Please see CHANGELOG for more information on what has changed recently.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-github-stats with dependencies
illuminate/support Version ^11.0|^12.0|^13.0
spatie/laravel-package-tools Version ^1.14.0