PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Nahid Bin Azhar  >  PHP Github API Client  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Github API Client
Access GitHub user repositories
Author: By
Last change:
Date: 4 years ago
Size: 264 bytes
 

Contents

Class file image Download
<?php

require 'vendor/autoload.php';
require
'src/Github.php';
$config = include('config/github.php');
use
Nahid\GithubClient\Github;


$api = new Github($config);
$api->session->destroy();
echo
'<a href="'. $api->makeAuthLink('user, public_repo').'">Auth</a>';


For more information send a message to info at phpclasses dot org.