GitHub API Wrapper

GitHub API Wrapper

from 0$

GitHub API Wrapper is a WP Plugin from the Software Development Kits range

For more information about a tailored WP Plugin like GitHub API Wrapper please contact us directly.

Overview

This plugin provides the GitHub API Wrapper to integrate versioning into a larger project.

Note: The autoloader of this wrapper is not included automatically.

Autoload

Use the following path to include the classes before your code:

require_once WP_PLUGIN_DIR . '/github-api-wrapper/vendor/autoload.php';

Alternatively use the following action to autoload the classes:

do_action('wp2e_autoload_github-api-wrapper');

Quick Examples

Instantiate a Github client

$client = new \Github\Client();

Get the public repositories of a user

try{

	$repositories = $client->api('user')->repositories('rafasashi');
}
catch (RuntimeException  $e) {

	$error = $e->getMessage();
}

Useful Links

 

A Software Development Kit (SDK) is a collection of software development tools in one installable package.

This script is completely standalone and does not do anything after installing it. As such this is a light-weight module for easy inclusion into a bigger project.