Download the PHP package creocoder/yii2-flysystem without Composer
On this page you can find all versions of the php package creocoder/yii2-flysystem. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package yii2-flysystem
Flysystem Extension for Yii 2
This extension provides Flysystem integration for the Yii framework. Flysystem is a filesystem abstraction which allows you to easily swap out a local filesystem for a remote one.
This version requires Flysystem 3.x and PHP 8.1+
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json file.
Configuring
Local filesystem
Configure application components as follows
FTP filesystem
Either run
or add
to the require section of your composer.json file and configure application components as follows
In-Memory filesystem
Configure application components as follows
AWS S3 filesystem
Either run
or add
to the require section of your composer.json file and configure application components as follows
Azure Blob Storage filesystem
Either run
or add
to the require section of your composer.json file and configure application components as follows
Dropbox filesystem
Either run
or add
to the require section of your composer.json file and configure application components as follows
Google Cloud Storage filesystem
Run
and configure application components as follows
Note: Credential configuration is read from the keyFilePath.
GridFS filesystem
Either run
or add
to the require section of your composer.json file and configure application components as follows
SFTP filesystem
Either run
or add
to the require section of your composer.json file and configure application components as follows
WebDAV filesystem
Either run
or add
to the require section of your composer.json file and configure application components as follows
ZipArchive filesystem
Either run
or add
to the require section of your composer.json file and configure application components as follows
Global visibility settings
Configure fsID application component as follows
Usage
Writing files
To write a file
To write a file using stream contents
Reading files
To read a file
To retrieve a read-stream
Checking if a file exists
To check if a file exists
To check if a directory exists
Deleting files
To delete a file
Moving files
To move a file
Copying files
To copy a file
Getting files mimetype
To get a file mimetype
Getting files last modified timestamp
To get a file last modified timestamp
Getting files size
To get a file size
Creating directories
To create a directory
Directories are also made implicitly when writing to a deeper path
Deleting directories
To delete a 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
Upgrading from v1
If you are upgrading from the Flysystem v1 version of this extension, please note the following breaking changes:
Removed Features
- Caching: The cached adapter is no longer available in Flysystem v3
- Replication: The replicate adapter is no longer available in Flysystem v3
- Rackspace: The Rackspace adapter has been removed as the service is discontinued
- NullFilesystem: Replaced with
InMemoryFilesystem
API Changes
| v1 Method | v3 Method |
|---|---|
has($path) |
fileExists($path) / directoryExists($path) |
createDir($path) |
createDirectory($path) |
deleteDir($path) |
deleteDirectory($path) |
rename($path, $newpath) |
move($source, $destination) |
getTimestamp($path) |
lastModified($path) |
getMimetype($path) |
mimeType($path) |
getSize($path) |
fileSize($path) |
getVisibility($path) |
visibility($path) |
update() / put() |
write() |
updateStream() / putStream() |
writeStream() |
Visibility Constants
Donating
Support this project and others by creocoder via gratipay.