This plugin provides the GitHub API Wrapper to integrate versioning into a larger project.
Note: The autoloader of this wrapper is not included automatically.
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');
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(); }
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.