hws / gitbucketcalendar
1.2
2017-01-11 15:23 UTC
Requires
- gentle/bitbucket-api: 0.8.*
Requires (Dev)
- phpunit/phpunit: 5.7.*
This package is not auto-updated.
Last update: 2025-03-30 01:26:50 UTC
README
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).