thedarkkid/cloudinary-flysystem

Flysystem适配器用于Cloudinary

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

This package is auto-updated.

Last update: 2024-09-19 22:21:22 UTC


README

为league php flysystem的Cloudinary适配器,支持Laravel Voyager Media的方法。

Author Latest Stable Version Total Downloads Latest Unstable Version License

安装

composer require thedarkkid/cloudinary-flysystem

示例

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 );

使用Filesystem API列出内容和其他操作

$filesystem->listContents()

用于Laravel

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