Diem plugins syndication

dmGithubPlugin

Easily integrates GitHub API in your site, in a Object Oriented way

dmGithubPlugin allows to connect your site with GitHub.
It bundles php-github-api, an object oriented GitHub API for PHP5.
It packages two Diem front widgets to display issues and commits.

See it in action on Diem Development page.

Installation

  • In a console, from your project root dir, run:
git clone git://github.com/ornicar/dmGithubPlugin.git plugins/dmGithubPlugin  
  • In config/ProjectConfiguration.class.php, add dmGithubPlugin to the list of enabled plugins:
class ProjectConfiguration extends dmProjectConfiguration
{  
  public function setup()  
  {  
    parent::setup();  
 
    $this->enablePlugins(array(  
      // your enabled plugins  
      'dmGithubPlugin'  
    ));  
  • In a console, from your project root dir, run:
php symfony dm:setup  

Front Widgets

GitHub List Issues widget

This widget lists issues for a given repository.
To use it, just drag&drop a GitHub/List Issues widget somewhere on your site.

Options

Configure the widget on the widget edition dialog:
- user The repository user
- repo The repository name
- state The issue state. Can be "closed" or "open".
- nb_issues Number of issues to display.
- life_time Duration of the cache in seconds.

Customize the template

Copy
plugins/dmGithubPlugin/modules/dmWidget/templates/_dmWidgetGithubListIssues.php
to
apps/front/modules/dmWidget/templates/_dmWidgetGithubListIssues.php
then modify it.

GitHub List Commits widget

This widget lists commits for a given repository and branch.
To use it, just drag&drop a GitHub/List Commits widget somewhere on your site.

Options

Configure the widget on the widget edition dialog:
- user The repository user
- repo The repository name
- branch The branch name. Defaults to "master".
- nb_commits Number of commits to display.
- life_time Duration of the cache in seconds.

Customize the template

Copy
plugins/dmGithubPlugin/modules/dmWidget/templates/_dmWidgetGithubListCommits.php
to
apps/front/modules/dmWidget/templates/_dmWidgetGithubListCommits.php
then modify it.

GitHub API

This plugin provides php-github-api. It allows you to request any GitHub service.

Exemple:

$api = new phpGitHubApi();
$issues = $api->listIssues('diem-project', 'diem', 'closed');  

View php-github-api documentation.

  • escort agencies NorwaySeptember 3, 2012 2:04 PM

    Hello everybody! I do not know where to begin but hope this diem-project.org will be useful for me.

  • Norwegian escortSeptember 7, 2012 7:39 PM

    Good write-up, I'm normal visitor of diem-project.org , maintain up the nice operate, and It is going to be a regular visitor for a long time.

  • вибропогружателиJanuary 15, 2013 1:32 AM

    j'ai besoin de quelques idées pour un blog. Je fais déjà des poèmes et des enquêtes à ce sujet, mais je veux parler de quelque chose ..

  • escort of dubaiJanuary 29, 2013 12:36 AM

    Now i'm glad that I noticed diem-project.org , exactly the suitable information which wanted!

  • Testosterone propionate 250 mgFebruary 24, 2013 11:41 AM

    Heya i?m there?s finally someone here. I came across this board when i realize it?s in fact useful & this solved the problem out there very much. I?m hoping to allow a little something lower back and guidance other individuals an example would be made it easier for all of us.

  • escort girls ParisMay 16, 2013 12:37 AM

    I truly wanted to compose a simple comment to say thanks to you for all of the great concepts you are writing at this website. My incredibly long internet look up has at the end been honored with incredibly good facts and strategies to talk about with my friends and classmates. I ?d admit that most of us site visitors actually are quite lucky to exist in a fantastic place with so many outstanding people with useful suggestions. I feel quite fortunate to have come across the webpage and look forward to tons of more fun times reading here. Thank you once again for a lot of things.

  • Nolvadex 20 mgJuly 25, 2013 8:27 PM

    do you get acne ,hair loss depresion when finished?.

  • anabolic haloSeptember 27, 2013 10:00 AM

    I found this post earlier today while in the office Very useful Sent the link to myself and will most likely bookmark diem-project.org when I make it home

  • body building femaleOctober 12, 2013 8:19 PM

    Matchless topic, it is very interesting to me )))) tHANKS diem-project.org tEAM

  • Ivy escortOctober 14, 2013 9:21 PM

    Nothing against the article, but I disagree with a couple of points to some extenct. I'm probably a minority though, lol. Thanks for sharing it on diem-project.org .

  • BritniOctober 30, 2013 7:45 PM

    Quelles sont les chances de se faire prendre avec une escorte?

  • ItRdsOvnHaJanuary 7, 2014 4:30 AM

    <a href=http://oakleybigbass.com/lib/#9>read here</a> best place buy tramadol forum - купить tramadol online

  • SanoraJanuary 7, 2014 10:52 AM

    I am a 19 year old female quadriplegic and a mother of a two-year-old daughter. I am not able to work because of my disability but I do have a voice-activated computer and I know a lot about computers and the Internet. I want to start a website I do not know about what. I need IDEAS! I would like to make some profit on my website but I do not know how to do that or how to get companies to pay to put ads up on my website. I don't even know where to go to start my own website. I need lots and lots of help if someone would like to help me out or maybe be partners with me when the website starts making a profit you will get a portion of the profits.. wish you all the best in 2014!

Add a comment

Create an issue
Impossible to fetch issues for this plugin.
Impossible to get this plugin changelog.
See more commits

dmGithubPlugin, created on February 15, 2010 by Thibault D, used by 130 projects

Fork Diem on GitHub