PHP code example of gabrielmoura / flysystem-ipfs

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

    

gabrielmoura / flysystem-ipfs example snippets


'ipfs' => [
            'driver' => 'ipfs',
            'host' => env('IPFS_ADDRESS', 'http://127.0.0.1:5001/api/v0'),
            'root' => env('IPFS_ROOT', '/laravel'),
            'url' => env('IPFS_URL', 'https://cloudflare-ipfs.com/ipfs/'),
        ],