carlosocarvalho/flysystem-cloudinary

Flysystem adapter for Cloudinary

1.0.2 2019-01-29 19:58 UTC

README

Adapter for theleague php flysystem for Cloudinary

Author Latest Stable Version Total Downloads Latest Unstable Version License Build Status Codacy Badge

Install

  composer require carlosocarvalho/flysystem-cloudinary

Example


use CarlosOCarvalho\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/carlosocarvalho/laravel-storage-cloudinary]