1. Go to this page and download the library: Download drexlerux/yii2-filemanager library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
drexlerux / yii2-filemanager example snippets
php composer.phar
return [
//...
'modules' => [
//...
'filemanager' => [
'class' => 'drexlerux\filemanager\Module',
'thumbnails' => [[100,100]], // Optional: array
'path' => '/images/uploads/', // Default relative to your web directory or AWS
'thumbPath' => '/images/uploads/thumb/', // Default relative to your web directory or AWS
'url' => '/', // either s3 buket URL or CloudFront (can be changed)
'aws' => [
'enable' => true,
'key' => 'YOURAWS_KEY',
'secret' => 'YOURAWS_SECRET',
'bucket' => 'your-bucket',
],
],
//...
],
FilemanagerTinyAssets::register($this->view);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.