thedarkkid/cloudinary-flysystem

Flysystem adapter for Cloudinary

dev-master 2019-06-18 18:41 UTC

This package is auto-updated.

Last update: 2024-04-19 21:25:35 UTC


README

Adapter for theleague php flysystem for Cloudinary, with methods to support Laravel Voyager Media.

Author Latest Stable Version Total Downloads Latest Unstable Version License

Install

composer require thedarkkid/cloudinary-flysystem

Example

use TheDarkKid\Flysystem\Cloudinary\CloudinaryAdapter as Adapter;

$config = [
    'api_key' => ':key',
    'api_secret' => ':secret',
    'cloud_name' => ':name',
];

$container = new Adapter($config);

$filesystem = new League\Flysystem\Filesystem( $container );

List contents and others actions use Filesystem api

$filesystem->listContents()

For use in laravel

[https://github.com/laryhoFolaranmi/cloudinary-flysystem-adapter]