hws / gitbucketcalendar
Installs: 26
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 2
Open Issues: 3
pkg:composer/hws/gitbucketcalendar
Requires
- gentle/bitbucket-api: 0.8.*
Requires (Dev)
- phpunit/phpunit: 5.7.*
This package is not auto-updated.
Last update: 2025-10-26 04:15:52 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).
