1. Go to this page and download the library: Download pkg6/flysystem-github 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/ */
pkg6 / flysystem-github example snippets
use pkg6\flysystem\github\GithubAdapter;
use League\Flysystem\Filesystem;
$token='xxxxxx';
$username='xxxxxx';
$repository='test';
$adapter = new GithubAdapter($token,$username,$repository);
$flysystem = new League\Flysystem\Filesystem($adapter);