growtask / simflex-file-manager
Standalone PHP file manager
Installs: 28
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:CSS
Requires
- php: >=8.0
This package is auto-updated.
Last update: 2024-12-14 16:12:59 UTC
README
A simple, clean and fast File Manager with mobile UI support.
Requirements
- PHP 8.0 or higher
Installation:
- Execute
composer require growtask/simflex-file-manager
- Copy the
bootstrap.php
file to the root of your website - Include
assets/css/style.min.css
to thehead
andassets/js/app.min.js
to the end ofbody
on your page - Output HTML content from
tpl/index.tpl
beforeassets/js/app.min.js
is included - Set
window.fileManager.assetsDir
toassets
folder - Invoke
window.fileManager.init();
Additionally, you can pass a callback (path)
to the init
function in order to receive the selected path.
Additional configuration
All required parameters are passed to the Manager
class constructor:
root
- root directory (absolute path)authFn
- authentication test function
If your handler file is named differently from bootstrap.php
, or located in a different path then change window.fileManager.apiBase
to a different location.
Additionally, if you are using custom root directory, set window.fileManager.rootDir
appropriately.