thedarkkid / cloudinary-flysystem
Flysystem适配器用于Cloudinary
dev-master
2019-06-18 18:41 UTC
Requires
- php: >=5.4.0
- cloudinary/cloudinary_php: ^1.3
- league/flysystem: ^1.0
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-09-19 22:21:22 UTC
README
为league php flysystem的Cloudinary适配器,支持Laravel Voyager Media的方法。
安装
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]