Skip to content

Instantly share code, notes, and snippets.

@joanhey
Last active January 22, 2016 21:25
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joanhey/a3ec439b20cc9c21a94b to your computer and use it in GitHub Desktop.
Save joanhey/a3ec439b20cc9c21a94b to your computer and use it in GitHub Desktop.
Kumbia Partial: show git contributors to KumbiaPHP

Show git contributors

<?php View::partial('gitcontributors', '+1 day')?>

Cache de 1 día

<h2>Gracias a todos los colaboradores</h2>
<?php
ini_set("user_agent", 'KumbiaPHP bot');
$url = 'https://api.github.com/repos/KumbiaPHP/KumbiaPHP/contributors';
$team = json_decode(file_get_contents($url));
foreach($team as $user) :?>
<a href="https://github.com/<?= $user->login?>" title="@<?= $user->login?>">
<img src="<?= $user->avatar_url ?>&s=60" width=60 height=60 alt="<?= $user->contributions?> contribuciones"></a>
<?php endforeach ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment