PHPackages                             digitalkaoz/github-contributions-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. digitalkaoz/github-contributions-bundle

ActiveSymfony-bundle

digitalkaoz/github-contributions-bundle
=======================================

Symfony2 Bundle to show Github Contributions

1.0.2(12y ago)215MITPHP

Since Nov 1Pushed 11y ago1 watchersCompare

[ Source](https://github.com/digitalkaoz/GithubContributionsBundle)[ Packagist](https://packagist.org/packages/digitalkaoz/github-contributions-bundle)[ RSS](/packages/digitalkaoz-github-contributions-bundle/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

GithubContributionsBundle
=========================

[](#githubcontributionsbundle)

This Bundle lets you display some Github Statistics in your Symfony2 Application. See  for more Information.

[![Build Status](https://camo.githubusercontent.com/078e3d04bb7029dcee2ffefdf19b8f0c422b7879a32ee240ce1dde8b43ae9e6e/68747470733a2f2f7472617669732d63692e6f72672f6469676974616c6b616f7a2f476974687562436f6e747269627574696f6e7342756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/digitalkaoz/GithubContributionsBundle)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/36e24acadafde21d91c75b0c26865523b0a9e75a76c53079e527bf447c2bc7d7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6469676974616c6b616f7a2f476974687562436f6e747269627574696f6e7342756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f733d63363863653635383038643862353737353566316563343932616531303336666439346266383735)](https://scrutinizer-ci.com/g/digitalkaoz/GithubContributionsBundle/)[![Code Coverage](https://camo.githubusercontent.com/b6743c7bb93946f3e62f06a66af464c25386c81798e340c96983d0f27f1b7cf1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6469676974616c6b616f7a2f476974687562436f6e747269627574696f6e7342756e646c652f6261646765732f636f7665726167652e706e673f733d37333762316338313935313535666538616562336266393536623034643062643737643164336532)](https://scrutinizer-ci.com/g/digitalkaoz/GithubContributionsBundle/)[![SensioLabsInsight](https://camo.githubusercontent.com/ae0017e8c523890d3afb9dbb86b5038a31a79487885c20ce347c4e4b6c050225/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f61373464373565612d366161352d346366392d393564642d6462346166626235623264632f6d696e692e706e67)](https://insight.sensiolabs.com/projects/a74d75ea-6aa5-4cf9-95dd-db4afbb5b2dc)[![Latest Stable Version](https://camo.githubusercontent.com/2e49cf71f1ecbeac54ab533584f5a97ed3f4bcd36ae1fb23ed5a36d1dd67d182/68747470733a2f2f706f7365722e707567782e6f72672f6469676974616c6b616f7a2f6769746875622d636f6e747269627574696f6e732d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/digitalkaoz/github-contributions-bundle)[![Total Downloads](https://camo.githubusercontent.com/d386ca75d09b227eb7f156dc771bc223a5c42cff5e92cd439a4f6c693d6d6227/68747470733a2f2f706f7365722e707567782e6f72672f6469676974616c6b616f7a2f6769746875622d636f6e747269627574696f6e732d62756e646c652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/digitalkaoz/github-contributions-bundle)

**Contribution Calendar**

[![](https://camo.githubusercontent.com/3278426c47bae6659ee249dba31ed288e588ce92528df1f751c903acb12b8386/687474703a2f2f7332312e706f7374696d672e6f72672f343936387a323777372f42696c6473636869726d666f746f5f323031335f31315f30315f756d5f32305f34305f30362e706e67)](https://camo.githubusercontent.com/3278426c47bae6659ee249dba31ed288e588ce92528df1f751c903acb12b8386/687474703a2f2f7332312e706f7374696d672e6f72672f343936387a323777372f42696c6473636869726d666f746f5f323031335f31315f30315f756d5f32305f34305f30362e706e67)

**Repositories &amp; Contributions**

[![](https://camo.githubusercontent.com/4eb1025c047eb196315194d242e6fb49863292ec8871c0e6d73fe63f7f5bfd10/687474703a2f2f7331312e706f7374696d672e6f72672f34327373356d6d6b6a2f42696c6473636869726d666f746f5f323031335f31315f30315f756d5f32305f34305f31382e706e67)](https://camo.githubusercontent.com/4eb1025c047eb196315194d242e6fb49863292ec8871c0e6d73fe63f7f5bfd10/687474703a2f2f7331312e706f7374696d672e6f72672f34327373356d6d6b6a2f42696c6473636869726d666f746f5f323031335f31315f30315f756d5f32305f34305f31382e706e67)

Installation
============

[](#installation)

Add the Bundle with `Composer`
------------------------------

[](#add-the-bundle-with-composer)

```
{
    "require" : {
        "digitalkaoz/GithubContributionsBundle" : "~1.0"
    }
}
```

For Caching add `"liip/doctrine-cache-bundle": "~1.0"` as well!

Then update your Dependencies: `php composer.phar update`

Activate the Bundle in your `AppKernel`
---------------------------------------

[](#activate-the-bundle-in-your-appkernel)

```
public function registerBundles()
{
    $bundles = array(
        // ...
        new digitalkaoz\GithubContributionsBundle\digitalkaozGithubContributionsBundle()
    );

    return $bundles;
}
```

Include the Routing File in your `routing.yml`
----------------------------------------------

[](#include-the-routing-file-in-your-routingyml)

```
digitalkaoz_github_contributions:
    resource: "@digitalkaozGithubContributionsBundle/Resources/config/routing.xml"
    prefix:   /github
```

Configuration
=============

[](#configuration)

the full configuration looks like this:

```
# only needed if you want to cache the github reponses (recommend)
liip_doctrine_cache:
    namespaces:
        github:
            type: file_system

#nothing is required, but its recommended to use an api token and cache the results
digitalkaoz_github_contributions:
    api_token:     your_github_api_token
    cache_service: liip_doctrine_cache.ns.github
    username:      your_github_username
    templates:
        contributions:   digitalkaozGithubContributionsBundle:Contributions:contributions.html.twig
        activity_stream: digitalkaozGithubContributionsBundle:Contributions:activity.html.twig
        user_repos:      digitalkaozGithubContributionsBundle:Contributions:user_repos.html.twig
```

Usage
=====

[](#usage)

View the Statistics
-------------------

[](#view-the-statistics)

- visit `/github/contributions` to view a list of repositories you have contributed to
- visit `/github/repos` to view a list of your own repositories
- visit `/github/activity` to view your contribution calendar (like the github one)

Generate the Caches
-------------------

[](#generate-the-caches)

the calculation of your contributions may take a while, so i build some commands to generate the caches eagerly from your console/cronjobs.

- run `app/console github:contribution-update contribution digitalkaoz` to update the contributions cache for `digitalkaoz`
- run `app/console github:contribution-update repos digitalkaoz` to update the repos cache for `digitalkaoz`
- run `app/console github:contribution-update activity digitalkaoz` to update the activity cache for `digitalkaoz`

Tests
=====

[](#tests)

everything is well tested and under CI:

-
-
-

TODO
====

[](#todo)

- other useful stats?
- more generic approach for hooking own stats collectors?

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

4579d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c250d4625389526aaf66f599e8e85e684cff28788f71ea2412b2434739a3bffd?d=identicon)[digitalkaoz](/maintainers/digitalkaoz)

---

Top Contributors

[![digitalkaoz](https://avatars.githubusercontent.com/u/293591?v=4)](https://github.com/digitalkaoz "digitalkaoz (37 commits)")

---

Tags

symfonybundlegithub

### Embed Badge

![Health badge](/badges/digitalkaoz-github-contributions-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/digitalkaoz-github-contributions-bundle/health.svg)](https://phpackages.com/packages/digitalkaoz-github-contributions-bundle)
```

###  Alternatives

[ufo-tech/json-rpc-sdk-bundle

The Symfony bundle for simple usage Json-RPC api with dynamic SDK

172.5k](/packages/ufo-tech-json-rpc-sdk-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
