PHP code example of m50 / laravel-git-contributions-calendar

1. Go to this page and download the library: Download m50/laravel-git-contributions-calendar library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

m50 / laravel-git-contributions-calendar example snippets


m50\GitCalendar\Providers\ContribCalendarServiceProvider::class,

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

$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)));
}
sh
composer install m50/laravel-git-contributions-calendar
php artisan vendor:publish