Skip to content

Displays calendar with your contributions from GitHub and BitBucket repositories

License

Notifications You must be signed in to change notification settings

piokom123/GitBucketCalendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitBucket Calendar Latest Stable Version Total Downloads License

Library that allows you to display GitHub and BitBucket contributions in GitHub-like calendar widget.

Installation

Code is available in Packagist repository so installation is as simple as including it in your dependencies.

"require": {
    "hws/gitbucketcalendar": "1.2.*"
}

After that you have to run (and preferably add to your crontab) script from ./examples/cron.php to fetch data.

Examples

$repo = new GitBucketCalendar\GitBucketCalendar([
    'bitbucket_key' => '',
    'bitbucket_secret' => '',
    'bitbucket_commit_usernames' => [
        ''
    ],
    'github_account_username' => '',
    'memcached_host' => 'localhost',
    'memcached_port' => 11211
]);

$repo->printContributionsCalendar();

bitbucket_commit_usernames contains array with all usernames used for commits that should be counted in. github_account_username is GitHub usernames (exacly like used in profile URL).

GitBucket

About

Displays calendar with your contributions from GitHub and BitBucket repositories

Resources

License

Stars

Watchers

Forks

Packages

No packages published