PHP code example of conduit-ui / github-connector

1. Go to this page and download the library: Download conduit-ui/github-connector library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

conduit-ui / github-connector example snippets


use ConduitUi\GitHubConnector\GithubConnector;

$connector = new GithubConnector('your-token');

// Make raw HTTP requests
$repos = $connector->get('/user/repos');
$newRepo = $connector->post('/user/repos', ['name' => 'new-repo']);