Download the PHP package d3yii2/d3files without Composer
On this page you can find all versions of the php package d3yii2/d3files. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download d3yii2/d3files
More information about d3yii2/d3files
Files in d3yii2/d3files
Package d3files
Short Description Extension for file uploading and attaching to the models
License BSD-4-Clause
Homepage https://github.com/d3yii2/d3files
Informations about the package d3files
d3files (inspired from d2files)
Extension for file uploading and attaching to the models
Features
- attach files to model record (it is possible to attach to one model multiple files)
- widget for model view
- access rights realised as standalone actions (separate download, upload, delete) by integrating in model's controllers
- shared files for public access
Installation
- add to config/web.php
-
migration configuration. Add to console migration definition path
- do migration
Usage
Widget
Allow upload, download, delete files for model record.
D3FilesPreviewWidget
Extends D3FilesWidget with file preview.
File types are determined automatically to load PDF or images inside modal dialog window.
Dependencies:
eaBlankonThema\widget\ThModal
d3system\yii2\web\D3SystemView
Main layout should have footer code: php <?= d3yii2\d3files\widgets\D3FilesPreviewWidget::widget( [ 'model' => $model, 'model_id' => $model->id, 'title' => 'Widget Title', 'readOnly' => false, ] ) ?>
bash yii d3files/clean-files/remove-older-than 'dektrium\user\models\User' 12 '%.xml' bash yii d3files/clean-files/remove-files 'dektrium\user\models\User' bash yii d3files/clean-files/unused-files 'poker\poker\models\PkPlaygroundFixes'
### Change log
- 0.9.0 (Feb 26, 2017) - added RU translation
- 0.9.3 (May 29, 2017) - auto creating upload directories
- 0.9.4 (Nov 16, 2017) - added parameter controllerRoute
- 0.9.13 (Jul 2, 2018) - added action column
- 0.9.93 (febr 10, 2022) - added controller d3files/clean-files for maintenance
- 0.9.97 (jun 28, 2022) - improved maintanance controller d3files/clean-files
All versions of d3files with dependencies
yiisoft/yii2 Version ~2.0.0
yiisoft/yii2-bootstrap Version @dev
kartik-v/yii2-widget-fileinput Version dev-master
d3yii2/pdfobject Version *
d3yii2/d3system Version *