PHP code example of vasilvestre / flysystem-cloudinary-adapter

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

    

vasilvestre / flysystem-cloudinary-adapter example snippets

 php

use Vasilvestre\Flysystem\Cloudinary\CloudinaryAdapter;
use League\Flysystem\Filesystem;

i-key',
    'api_secret' => 'You-know-what-to-do',
    'uri_prefix' => 'prod/'
]);

// I'm not sure about underlying instructions.

// This option disables assert that file is absent before calling `write`.
// It is necessary if you want to overwrite files on `write` as Cloudinary does it by default.
$filesystem = new Filesystem($adapter, ['disable_asserts' => true]);