2017 © Pedro Peláez
 

library octogun

Simple wrapper for the GitHub v3 API

image

dmyers/octogun

Simple wrapper for the GitHub v3 API

  • Wednesday, August 9, 2017
  • by dmyers
  • Repository
  • 1 Watchers
  • 8 Stars
  • 62 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Octogun Build Status Coverage Status

Simple PHP wrapper for the GitHub API. This is an unofficial port of Octokit.rb in PHP. The goal is to have feature parity between languages., (*1)

Installation

Simply install using composer:, (*2)

$ composer require dmyers/octogun

Examples

Show a user

$client = \Octogun\Octogun::users();
$client->user('sferik');

Show a repository

$client = \Octogun\Octogun::repositories();
$client->repo('octogun/octogun.rb');

Authenticated Requests

For methods that require authentication, you'll need to setup a client with your login and password., (*3)

$client = new \Octogun\Client(['login' => 'me', 'password' => 'sekret']);
$client->users()->follow('sferik');

Alternately, you can authenticate with a GitHub OAuth2 token., (*4)

$client = new \Octogun\Client(['login' => 'me', 'oauth_token' => 'oauth2token']);
$client->users()->follow('sferik');

Using with GitHub Enterprise

To use with GitHub Enterprise, you'll need to set the API and web endpoints before instantiating a client., (*5)

$client = new \Octogun\Client(['login' => 'USERNAME', 'password' => 'PASSWORD']);
$client->configuration()->set('api_endpoint', 'https://github.company.com/api/v3';
$client->configuration()->set('web_endpoint', 'https://github.company.com/';

Copyright (c) 2013 Derek Myers. See LICENSE for details., (*6)

The Versions

09/08 2017

dev-master

9999999-dev http://github.com/dmyers/octogun

Simple wrapper for the GitHub v3 API

  Sources   Download

MIT

The Requires

 

The Development Requires

github github api

09/08 2017

v0.0.5

0.0.5.0 http://github.com/dmyers/octogun

Simple wrapper for the GitHub v3 API

  Sources   Download

MIT

The Requires

 

The Development Requires

github github api

14/08 2016

v0.0.4

0.0.4.0 http://github.com/dmyers/octogun

Simple wrapper for the GitHub v3 API

  Sources   Download

MIT

The Requires

 

The Development Requires

github github api

14/06 2016

v0.0.3

0.0.3.0 http://github.com/dmyers/octogun

Simple wrapper for the GitHub v3 API

  Sources   Download

MIT

The Requires

 

The Development Requires

github github api

11/04 2015

v0.0.2

0.0.2.0 http://github.com/dmyers/octogun

Simple wrapper for the GitHub v3 API

  Sources   Download

MIT

The Requires

 

The Development Requires

github github api

09/05 2014

v0.0.1

0.0.1.0 http://github.com/dmyers/octogun

Simple wrapper for the GitHub v3 API

  Sources   Download

MIT

The Requires

 

The Development Requires

github github api