Download the PHP package dmstr/yii2-filefly-module without Composer
On this page you can find all versions of the php package dmstr/yii2-filefly-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package yii2-filefly-module
Yii2 FileFly Module
FlySystem API for dmstr/yii2-filemanager-widgets
Installation
ENV variables
Variable | Value | Required |
---|---|---|
AFM_FILESYSTEM | yii component name | yes |
AFM_REPAIR | default: true | no |
AFM_SLUG_NAMES | default: true | no |
AFM_DELETE_RECURSIVE | default: false | no |
i.e. AFM_FILESYSTEM=fsLocal
:question: How to configure a filesystem component Filesystem docs
Yii config
RBAC
Prosa
FileflyAdmin
full module access including debug informationFileflyDefault
management access (eg. POST request for upload, change, delete)-
FileflyPermissions
assigned users can set or unset roles or permissions which the user himself has assigned access_owner
permission beforeaccess_read
,access_update
,access_delete
- If no permission is set, it will check if any inherited permission can be granted
So if inherited access_*
permissions should be used, set defaultPermissions to null
NOT to '*'
.
ActiveRecord: FileflyHashmap
- uses
dmstr\activeRecordPermissions\ActiveRecordAccessTrait
with$activeAccessTrait = false
- access checks will be done for each permission type explicitly,
hasPermission($action)
- uses a
pathValidator
rule to ensure thepath
syntax on active record operations
Roles
-
FileflyAdmin
- filefly
-
FileflyDefault
- filefly_default_index
-
FileflyApi
- filefly_api_index
- FileflyPermissions
Permissions
- filefly
- filefly_default_index
- filefly_api_index
RBAC Plugins
Permission checks will ever come after file or folder operation
GrantPermission
SetPermission
RemovePermission
CLI
Configure
'controllerMap' => [
'fs' => [
'class' => '\hrzg\filefly\commands\FsController',
'filesystemComponents' => [
'local' => 'fs',
's3' => 'fsS3',
'storage' => 'fsFtp',
],
],
]
Widget
see https://github.com/dmstr/yii2-filemanager-widgets
Options for the yii2-filemanager-widgets Widget can be injected via the Module property fileManagerWidgetOptions
example:
Controller action in iFrame
Modal button
Load event listener
Iframe
Helper
Description | Method call | Example output |
---|---|---|
Total size for all filesystems | FileflyHashmap::getTotalSize() |
202.82 MiB |
Total size for all filesystems (raw bytes) | FileflyHashmap::getTotalSize(true) |
212670464 |
Total size for local filesystems |
FileflyHashmap::getTotalSize(false, 'local') |
48.32 MiB |
Total size for s3 filesystems (raw bytes) |
FileflyHashmap::getTotalSize(true, 's3') |
166546843 |
All versions of yii2-filefly-module with dependencies
creocoder/yii2-flysystem Version ^1.0.0
dmstr/yii2-active-record-permissions Version ^1.0.0