Download the PHP package wearesho-team/yii2-filesystem without Composer
On this page you can find all versions of the php package wearesho-team/yii2-filesystem. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wearesho-team/yii2-filesystem
More information about wearesho-team/yii2-filesystem
Files in wearesho-team/yii2-filesystem
Package yii2-filesystem
Short Description Yii2 integration for league/flysystem
License MIT
Informations about the package yii2-filesystem
Yii2 Filesystem
Integration of league/flysystem for Yii2.
It is configured by environment variables by default. Available integration out-of-box:
- Local - should be used for development
- S3 - should be used in production
Configuring
By-default configuring available using environment variables. To choose which integration to use you need to configure FILESYSTEM_ADAPTER variable. Available values: local, s3. (or another, if you use custom bootstrap configuration)
Configuring S3 adapter
| Variable | Required | Default | Description |
|---|---|---|---|
| S3_ENDPOINT | yes | endpoint url (with http/https) | |
| S3_REGION | yes | Example: eu-central-1 | |
| S3_BUCKET | yes | Example: yourcompany | |
| S3_PREFIX | no | empty string | path prefix |
Configuring Local adapter
| Variable | Required | Default | Description |
|---|---|---|---|
| FILESYSTEM_LOCAL_SAVE_PATH | yes | path to save file on local machine |
Usage
Bootstrap
To start use this package out-of-box you need to append Bootstrap into your Yii2 application.
Note: for advanced usage you may customize Bootstrap adapters and config properties
TODO
- Tests
License
MIT
All versions of yii2-filesystem with dependencies
ext-zip Version *
horat1us/yii2-environment-config Version ^1.1
league/flysystem Version ^3.29
league/flysystem-aws-s3-v3 Version ^3.23
yiisoft/yii2 Version ^2.0.40