2017 © Pedro Peláez
 

cakephp-plugin cakephp-github

CakePHP webservice implementation for GitHub

image

cvo-technologies/cakephp-github

CakePHP webservice implementation for GitHub

  • Monday, August 8, 2016
  • by Marlinc
  • Repository
  • 2 Watchers
  • 7 Stars
  • 54 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 2 % Grown

The README.md

GitHub plugin

Software License Build Status Coverage Status Total Downloads Latest Stable Version, (*1)

Installation

Using Composer

Ensure require is present in composer.json. This will install the plugin into Plugin/GitHub:, (*2)

{
    "require": {
        "cvo-technologies/cakephp-github": "~1.1"
    }
}

Usage

If you want to get information about a specific repository, (*3)

Webservice config

Add the following to the Webservice section of your application config., (*4)

        'git_hub' => [
            'className' => 'Muffin\Webservice\Connection',
            'service' => 'CvoTechnologies/GitHub.GitHub',
        ]

Controller

<?php

namespace CvoTechnologies\GitHub\Controller;

use Cake\Controller\Controller;
use Cake\Event\Event;

class IssuesController extends Controller
{

    public function beforeFilter(Event $event)
    {
        $this->loadModel('CvoTechnologies/GitHub.Issues', 'Endpoint');
    }

    public function index()
    {
        $issues = $this->Issues->find()->where([
            'owner' => 'cakephp',
            'repo' => 'cakephp'
        ]);

        $this->set('issues', $issues);
    }
}

The Versions

08/08 2016

dev-master

9999999-dev

CakePHP webservice implementation for GitHub

  Sources   Download

MIT

The Requires

 

The Development Requires

08/08 2016
07/08 2016

1.1.0

1.1.0.0

GitHub plugin

  Sources   Download

MIT

The Requires

 

The Development Requires

07/08 2016

1.0.1

1.0.1.0

GitHub plugin

  Sources   Download

MIT

The Requires

 

The Development Requires