Skip to content

Adapter for theleague php flysystem for Cloudinary

Notifications You must be signed in to change notification settings

dansmaculotte/flysystem-cloudinary

 
 

Repository files navigation

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

About

Adapter for theleague php flysystem for Cloudinary

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.7%
  • Shell 0.3%