growtask/simflex-file-manager
Composer 安装命令:
composer require growtask/simflex-file-manager
包简介
Standalone PHP file manager
README 文档
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.phpfile to the root of your website - Include
assets/css/style.min.cssto theheadandassets/js/app.min.jsto the end ofbodyon your page - Output HTML content from
tpl/index.tplbeforeassets/js/app.min.jsis included - Set
window.fileManager.assetsDirtoassetsfolder - 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.
统计信息
- 总下载量: 135
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2023-12-21