Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.03 KB

README.md

File metadata and controls

53 lines (34 loc) · 1.03 KB

flysystem-cloudinary V3

This project is a league/flysystem adapter for Cloudinary, forked from https://github.com/carlosocarvalho/flysystem-cloudinary

Install

  composer require dansmaculotte/flysystem-cloudinary

Example

use DansMaCulotte\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()

Run tests

Tests actually use Cloudinary to run. Copy .env.example to .env and set your api key, secret and cloud name. Then run:

composer test

Alternatively, you can export following variables before running the tests:

CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=
CLOUDINARY_CLOUD_NAME=

For use in laravel

Access this repository