PHP code example of radiergummi / flysystem-github-storage

1. Go to this page and download the library: Download radiergummi/flysystem-github-storage 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/ */

    

radiergummi / flysystem-github-storage example snippets


use Radiergummi\FlysystemGitHub\Client;

$token = getenv('YOUR_GITHUB_ACCESS_TOKEN');
$repository = getenv('YOUR_GITHUB_REPOSITORY')
$client = new Client($token, $repository);

use Radiergummi\FlysystemGitHub\GitHubAdapter;

$adapter = new GitHubAdapter($client);

use League\Flysystem\Filesystem;

$filesystem = new Filesystem($adapter);