{"id":25517492,"url":"https://github.com/m50/laravel-git-contributions-calendar","last_synced_at":"2026-04-11T06:03:47.349Z","repository":{"id":62521154,"uuid":"217633811","full_name":"m50/laravel-git-contributions-calendar","owner":"m50","description":"Allows rendering of a calendar in blade with your git contributions.","archived":false,"fork":false,"pushed_at":"2020-06-14T03:54:11.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"trunk","last_synced_at":"2025-02-15T12:14:34.997Z","etag":null,"topics":["blade","cache","calendar","contributions","git","laravel","tailwind"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m50.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-26T00:24:37.000Z","updated_at":"2019-10-28T16:51:32.000Z","dependencies_parsed_at":"2022-11-02T14:46:13.232Z","dependency_job_id":null,"html_url":"https://github.com/m50/laravel-git-contributions-calendar","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m50%2Flaravel-git-contributions-calendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m50%2Flaravel-git-contributions-calendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m50%2Flaravel-git-contributions-calendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m50%2Flaravel-git-contributions-calendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m50","download_url":"https://codeload.github.com/m50/laravel-git-contributions-calendar/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239681597,"owners_count":19679624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blade","cache","calendar","contributions","git","laravel","tailwind"],"created_at":"2025-02-19T15:22:45.664Z","updated_at":"2025-12-14T17:30:13.709Z","avatar_url":"https://github.com/m50.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Render Git contributions from Gitlab and/or Github in a Blade file\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/m50/laravel-git-contributions-calendar.svg?style=flat-square)](https://packagist.org/packages/m50/laravel-git-contributions-calendar)\n[![Build Status](https://img.shields.io/travis/m50/laravel-git-contributions-calendar/master.svg?style=flat-square)](https://travis-ci.org/m50/laravel-git-contributions-calendar)\n[![StyleCI](https://github.styleci.io/repos/217633811/shield?branch=master)](https://github.styleci.io/repos/217633811)\n[![Total Downloads](https://img.shields.io/packagist/dt/m50/laravel-git-contributions-calendar.svg?style=flat-square)](https://packagist.org/packages/m50/laravel-git-contributions-calendar)\n\nAllows rendering of a calendar in blade with your git contributions.\n\nAn example of what it can look like:\n![Screenshot](images/screenshot.png)\n\n\n## Install\n\nFirst install the package and publish the files:\n```sh\ncomposer install m50/laravel-git-contributions-calendar\nphp artisan vendor:publish\n```\nAdd the Service Provider:\n```php\nm50\\GitCalendar\\Providers\\ContribCalendarServiceProvider::class,\n```\n\n## Usage\n\nYou will want to rely on caching, because of the roundtrip time for the requests.\nIt's important to add the schedules job:\n```php\n$schedule-\u003ejob(new CacheEventData(app(GithubApi::class)))\n    -\u003edaily();\n```\nThen it's also recommended that where you are pulling the data (your controller\nfor example) to kick off a new queue job to re-cache the data:\n```php\n$data = Cache::get(\n    'git-contrib-data',\n    function () {\n        $this-\u003edispatch(new CacheEventData(app(GithubApi::class)));\n        return new GitData();\n    }\n);\nif (app()-\u003eenvironment('Production')) {\n    $this-\u003edispatch(new CacheEventData(app(GithubApi::class)));\n}\n```\n\n*Note: The default view relies on [TailwindCSS](https://tailwindcss.com/).*\n\n## Credits\n\n* [Marisa Clardy](https://github.com/m50)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm50%2Flaravel-git-contributions-calendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm50%2Flaravel-git-contributions-calendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm50%2Flaravel-git-contributions-calendar/lists"}