PHPackages                             m50/laravel-git-contributions-calendar - 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. [Templating &amp; Views](/categories/templating)
4. /
5. m50/laravel-git-contributions-calendar

ActiveLibrary[Templating &amp; Views](/categories/templating)

m50/laravel-git-contributions-calendar
======================================

A Blade directive to display a contribution calendar, as found on Github/Gitlab.

v0.1.1(6y ago)00MITPHPPHP ^7.2CI failing

Since Oct 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/m50/laravel-git-contributions-calendar)[ Packagist](https://packagist.org/packages/m50/laravel-git-contributions-calendar)[ Docs](https://github.com/m50/laravel-git-contributions-calendar)[ RSS](/packages/m50-laravel-git-contributions-calendar/feed)WikiDiscussions trunk Synced yesterday

READMEChangelogDependencies (9)Versions (2)Used By (0)

Render Git contributions from Gitlab and/or Github in a Blade file
==================================================================

[](#render-git-contributions-from-gitlab-andor-github-in-a-blade-file)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d8470f4cd50d70af30266a31dd878d36ac5640d31b6179302015210bad795a60/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d35302f6c61726176656c2d6769742d636f6e747269627574696f6e732d63616c656e6461722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/m50/laravel-git-contributions-calendar)[![Build Status](https://camo.githubusercontent.com/d28fa69591cf5884a3328ec91a412c99e2829df5294b64355a6851f4a549d8b8/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d35302f6c61726176656c2d6769742d636f6e747269627574696f6e732d63616c656e6461722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/m50/laravel-git-contributions-calendar)[![StyleCI](https://camo.githubusercontent.com/60406a20de06e57b40628298c0e3b3ea88cc928d5250c2a9186b974450a15514/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3231373633333831312f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/217633811)[![Total Downloads](https://camo.githubusercontent.com/0c52aa6a642bb6cf5a1fba21ea678a40db34c62dad28a9f2113a7b69ee5ec4eb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d35302f6c61726176656c2d6769742d636f6e747269627574696f6e732d63616c656e6461722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/m50/laravel-git-contributions-calendar)

Allows rendering of a calendar in blade with your git contributions.

An example of what it can look like: [![Screenshot](images/screenshot.png)](images/screenshot.png)

Install
-------

[](#install)

First install the package and publish the files:

```
composer install m50/laravel-git-contributions-calendar
php artisan vendor:publish
```

Add the Service Provider:

```
m50\GitCalendar\Providers\ContribCalendarServiceProvider::class,
```

Usage
-----

[](#usage)

You will want to rely on caching, because of the roundtrip time for the requests. It's important to add the schedules job:

```
$schedule->job(new CacheEventData(app(GithubApi::class)))
    ->daily();
```

Then it's also recommended that where you are pulling the data (your controller for example) to kick off a new queue job to re-cache the data:

```
$data = Cache::get(
    'git-contrib-data',
    function () {
        $this->dispatch(new CacheEventData(app(GithubApi::class)));
        return new GitData();
    }
);
if (app()->environment('Production')) {
    $this->dispatch(new CacheEventData(app(GithubApi::class)));
}
```

*Note: The default view relies on [TailwindCSS](https://tailwindcss.com/).*

Credits
-------

[](#credits)

- [Marisa Clardy](https://github.com/m50)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

2389d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4bccc6d64da029282206f5f8a6bf36917bc2377532318447afea9410236250eb?d=identicon)[m50](/maintainers/m50)

---

Top Contributors

[![m50](https://avatars.githubusercontent.com/u/3577147?v=4)](https://github.com/m50 "m50 (18 commits)")

---

Tags

bladecachecalendarcontributionsgitlaraveltailwindlaravelbladecachetailwindgitcalendarcontributionsm50laravel-git-contributions-calendar

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/m50-laravel-git-contributions-calendar/health.svg)

```
[![Health](https://phpackages.com/badges/m50-laravel-git-contributions-calendar/health.svg)](https://phpackages.com/packages/m50-laravel-git-contributions-calendar)
```

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k84.2M225](/packages/laravel-horizon)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[robsontenorio/mary

Gorgeous UI components for Livewire powered by daisyUI and Tailwind

1.5k454.7k15](/packages/robsontenorio-mary)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)[ddfsn/blade-components

Blade Components is a hand-crafted, UI component library for building consistent web experiences in Laravel apps.

193.1k](/packages/ddfsn-blade-components)

PHPackages © 2026

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