kostikpenzin/yii2-elfinder-flysystem

v0.3.2 2022-04-06 11:45 UTC

This package is auto-updated.

Last update: 2024-04-06 16:24:06 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads

Extension adaptation https://github.com/barryvdh/elfinder-flysystem-driver

Installation

    "kostikpenzin/yii2-elfinder-flysystem": "*"

Customization

'components' => [
...
        'ftpFs' => [
			'class' => 'creocoder\flysystem\FtpFilesystem',
			'host' => 'host',
			// 'port' => 21,
			 'username' => 'username',
             'password' => 'password',
			// 'ssl' => true,
			// 'timeout' => 60,
			 //'root' => '/',
			// 'permPrivate' => 0700,
			// 'permPublic' => 0744,
			// 'passive' => false,
			// 'transferMode' => FTP_TEXT,
		],
...
]
...
            'root' => [
				'class' => 'kostikpenzin\elfinder\flysystem\Volume',
				'url' => 'http://www.some.ru/',
                'component' => 'ftpFs'
			],

or

...
            'root' => [
				'class' => 'kostikpenzin\elfinder\flysystem\Volume',
				'url' => 'http://www.some.ru/',
                'component' => [
                               			'class' => 'creocoder\flysystem\FtpFilesystem',
                               			'host' => 'host',
                               			// 'port' => 21,
                               			 'username' => 'username',
                                            'password' => 'password',
                               			// 'ssl' => true,
                               			// 'timeout' => 60,
                               			 //'root' => '/',
                               			// 'permPrivate' => 0700,
                               			// 'permPublic' => 0744,
                               			// 'passive' => false,
                               			// 'transferMode' => FTP_TEXT,
                               		]
			],

for more information on configuring the repository component see here https://github.com/creocoder/yii2-flysystem

Useful links

https://github.com/MihailDev/yii2-elfinder/

https://github.com/barryvdh/elfinder-flysystem-driver

https://github.com/creocoder/yii2-flysystem

http://flysystem.thephpleague.com/