【文件属性】:
文件名称:flysystem-url:Flysystem适配器包含URL生成方法
文件大小:20KB
文件格式:ZIP
更新时间:2021-04-15 16:42:35
PHP
Flysystem URL
扩展Flysystem适配器以包括URL生成方法。
支持:
AWS S3(以及具有S3兼容API的提供程序)
Azure Blob存储
谷歌云存储
用法
$ s3Client = new \ Aws \ S3 \ S3Client ([ //AWS client config...]);
$ urlS3Adapter = new \ Mrubiosan \ FlyUrl \ Adapter \ UrlAwsS3Adapter ( $ s3Client , 'mybucket' );
$ urlFilesystem = new \ Mrubiosan \ FlyUrl \ Filesystem \ UrlFilesystem ( $ urlS3Adapter );
echo $ urlFilesystem -> getUrl ( 'my/s3/file'
【文件预览】:
flysystem-url-master
----src()
--------Filesystem()
--------Adapter()
----phpunit.xml.dist(473B)
----.travis.yml(578B)
----LICENSE(34KB)
----README.md(1KB)
----tests()
--------Filesystem()
--------Adapter()
----.gitignore(27B)
----composer.json(1KB)