2017 © Pedro Peláez
 

library yii2-elfinder-flysystem

Yii2 ElFinder Flysystem

image

mihaildev/yii2-elfinder-flysystem

Yii2 ElFinder Flysystem

  • Wednesday, May 11, 2016
  • by mihaildev
  • Repository
  • 1 Watchers
  • 3 Stars
  • 3,414 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

Адаптация Flysystem для mihaildev/yii2-elfinder

Адаптация расширения https://github.com/barryvdh/elfinder-flysystem-driver, (*1)

Установка

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

Настройка

'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' => 'mihaildev\elfinder\flysystem\Volume',
                'url' => 'http://www.some.ru/',
                'component' => 'ftpFs'
            ],

или, (*2)

...
            'root' => [
                'class' => 'mihaildev\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,
                                    ]
            ],

за дополнительной информацией о настройке компоненты хранилища смотрите тут https://github.com/creocoder/yii2-flysystem, (*3)

Полезные ссылки

https://github.com/MihailDev/yii2-elfinder/, (*4)

https://github.com/barryvdh/elfinder-flysystem-driver, (*5)

https://github.com/creocoder/yii2-flysystem, (*6)

http://flysystem.thephpleague.com/, (*7)

The Versions