Skip to content

humanmade/wordpress-github-stats-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HM GitHub Stats

Configuration

Add the following to your wp-config.php, but replace as needed with your actual username/password:

define( 'HMG_USERNAME', 'willmot' );
define( 'HMG_PASSWORD', 'hunter2' );
define( 'HMG_ORGANISATION', 'humanmade' );

Usage

<div class="stat-commits" style="position:relative;">

    <div id="graph-commits" style="position:absolute;top:0;right:0;"></div>

    <div class="stat-wrap">
    	<a href="https://github.com/humanmade"><div class="stat-num"><?php echo ( $commits = array_sum( hmg_get_formatted_commits_for_month_cached() ) ) ? $commits : '&hellip;'; ?></div></a>
    </div>

    <div class="stat-comment">
        <span style="float:left">github commits this month</span>
        30 days / <span class="active"><strong><?php echo ( $average = hmg_commits_by_day_average() ) ? $average : '&hellip;'; ?></strong> commits per day</span>

    </div>

</div>

Contribution guidelines

See https://github.com/humanmade/hm-github-stats/blob/master/CONTRIBUTING.md

About

Easily pull Github stats into your WordPress Site

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages