Download the PHP package bestyii/yii2-aliyun-oss without Composer
On this page you can find all versions of the php package bestyii/yii2-aliyun-oss. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bestyii/yii2-aliyun-oss
More information about bestyii/yii2-aliyun-oss
Files in bestyii/yii2-aliyun-oss
Package yii2-aliyun-oss
Short Description 阿里云对象存储(OSS)基于flysystem Yii2 扩展
License MIT
Informations about the package yii2-aliyun-oss
yii2-aliyun-oss
阿里云对象存储(OSS)基于flysystem Yii2 扩展
本扩展的文件管理系统,采用 Flysystem,通过 Yii2扩展creocoder/yii2-flysystem将其集成到Yii2框架中。
通过阿里云OSS的适配器OssAdapter,将两者结合在一起。
目的:标准化文件管理的接口,方便迁移到其他云平台。
安装
The preferred way to install this extension is through composer.
执行安装命令
或添加以下
到 composer.json
文件的 require
部分.
配置
配置Yii的 components
如下:
使用
Writing files
To write file
To write file using stream contents
Updating files
To update file
To update file using stream contents
Writing or updating files
To write or update file
To write or update file using stream contents
Reading files
To read file
To retrieve a read-stream
Checking if a file exists
To check if a file exists
Deleting files
To delete file
Reading and deleting files
To read and delete file
Renaming files
To rename file
Getting files mimetype
To get file mimetype
Getting files timestamp
To get file timestamp
Getting files size
To get file size
Creating directories
To create directory
Directories are also made implicitly when writing to a deeper path
Deleting directories
To delete directory
Managing visibility
Visibility is the abstraction of file permissions across multiple platforms. Visibility can be either public or private.
You can also change and check visibility of existing files
Listing contents
To list contents
By default Flysystem lists the top directory non-recursively. You can supply a directory name and recursive boolean to get more precise results
Listing paths
To list paths
Listing with ensured presence of specific metadata
To list with ensured presence of specific metadata
Getting file info with explicit metadata
To get file info with explicit metadata
All versions of yii2-aliyun-oss with dependencies
creocoder/yii2-flysystem Version ^0.9.3
xxtime/flysystem-aliyun-oss Version ^1.4