PHP code example of mihaildev / yii2-elfinder-flysystem

1. Go to this page and download the library: Download mihaildev/yii2-elfinder-flysystem 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/ */

    

mihaildev / yii2-elfinder-flysystem example snippets


'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'
			],


...
            '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,
                               		]
			],