PHP code example of lpks / local-elfinder

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

    

lpks / local-elfinder example snippets




use Lpks\LocalElfinder\Connector;

$elfinder = new Connector(__DIR__ . '/uploads', 'assets/elfinder');

$elfinder->addOption('courses', [
    'uploadAllow' => ['image'],
    'uploadDeny' => [],
    'uploadOrder' => ['allow', 'deny'],
    'disabled' => ['mkfile', 'archive', 'extract'],
]);

$elfinder->addOption('customers', [
    'uploadAllow' => ['image'],
    'uploadDeny' => [],
    'uploadOrder' => ['allow', 'deny'],
    'disabled' => ['mkfile', 'rm', 'archive', 'extract'],
]);