Find the Exponential Software extensions you want
| UNIX name | Owner | Status |
|---|---|---|
| flysystem-cloudinary | 7x | stable |
| Version | Compatible with |
|---|---|
| N/A | N/A |
This is a Flysystem adapter for Cloudinary API.
composer require enl/flysystem-cloudinary '~1.0'
Or just add the following string to require part of your composer.json:
{
"require": {
"enl/flysystem-cloudinary": "~1.0"
}
}
use Enl\Flysystem\Cloudinary\ApiFacade as CloudinaryClient;
use Enl\Flysystem\Cloudinary\CloudinaryAdapter;
use League\Flysystem\Filesystem;
include __DIR__ . '/vendor/autoload.php';
$client = new CloudinaryClient([
'cloud_name' => 'your-cloudname-here',
'api_key' => 'api-key',
'api_secret' => 'You-know-what-to-do',
'overwrite' => false, // set this to true if you want to overwrite existing files using $filesystem->write();
]);
$adapter = new CloudinaryAdapter($client);
Please, keep in mind three possible pain-in-asses of Cloudinary: