Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.42 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.42 KB

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