lpks / local-elfinder
Local elfinder connector
v1.0
2020-10-15 07:57 UTC
Requires
This package is auto-updated.
Last update: 2024-10-15 16:52:19 UTC
README
Install
composer require lpks/local-elfinder
Config
require_once './vendor/autoload.php';
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'],
]);