oneduo/nova-file-manager
Composer 安装命令:
composer require oneduo/nova-file-manager
包简介
A handy file manager tool for Laravel Nova
README 文档
README
Nova File Manager
A file manager tool and field for Laravel Nova. Beautifully designed, and customizable, this tool will provide a plug'n'play solution for your file management needs.
Features :
⚡️ Blazing fast
📦️ Laravel Nova 4 compatible
💅 Built with Tailwindcss 3, Vue 3 and Pinia
🪨 Rock solid codebase built with Typescript
💽 Multi disk and filesystem support
🧩 Supports chunk and resumable uploads
🔧 Various customization and configuration options
🔍 A performant local search feature with Spotlight
🤹 Can save multiple assets from the same field
🔐 Access control and authorization gates
✂️ Built-in crop tool and image editor
📇 Built-in PDF viewer
🗂️ Drag and drop upload, with entire folder upload support
🗃️ Supports unzipping files
🚩 Onboarding tour for new users
Table of Contents
- Getting Started
- Usage
- Configuration
- Authors
- Screenshots
- Changelog
- Security
- Contributing
- Credits
- License
Getting Started
Prerequisites
This package requires the following :
- PHP 8.0 or higher
- Laravel Nova 4
Note If you plan on using this package with an S3 bucket, be mindful to follow the instructions for setting up an S3 storage disk.
Installing
To get started, you will need to install the following dependencies :
composer require oneduo/nova-file-manager
That's it, you're ready to go!
Configuration
You may publish the package's configuration by running the following command :
php artisan vendor:publish --tag="nova-file-manager-config"
Note You can find details about the configuration options in the configuration file section.
Usage
To get yourself started, you need to add the following tool to your NovaServiceProvider.php
// NovaServiceProvider.php use Oneduo\NovaFileManager\NovaFileManager; class NovaServiceProvider extends NovaApplicationServiceProvider { // ... public function tools(): array { return [ // ... any other tools NovaFileManager::make(), ]; } }
Now that the tool is registered, if you go back to your Nova dashboard, you should see a new navigation entry labeled " File Manager".
Once you've added the tool, you can start using it.
Go ahead and add a FileManager field to your Nova resource.
// app/Nova/User.php use Oneduo\NovaFileManager\FileManager; class User extends Resource { // ... public function fields(NovaRequest $request): array { return [ // ... any other fields FileManager::make(__('Avatar'), 'avatar'), ]; } }
You have now successfully added a File Manager field to your resource.
Configuration file
| Key | Description | Type | Default | Notes |
|---|---|---|---|---|
default_disk |
The default disk used by the package | string |
public |
The default disk must be defined in your filesystems.php config |
available_disks |
Provides a list of available disks to be used by the package | string[] |
- | |
show_hidden_files |
Toggles whether or not to show files and folders that start with a "dot" | bool |
false |
|
human_readable_size |
When set to true, the package will display file sizes in a more friendly readable format | bool |
true |
|
human_readable_datetime |
When set to true, the package will display dates with diffForHumans() |
bool |
true |
|
file_analysis.enable |
When set to true, the package will use getID3 to parse metadata from the files | bool |
true |
|
file_analysis.cache.enable |
When set to true, the package will cache the file analysis result | bool |
true |
|
file_analysis.cache.ttl_in_seconds |
TTL for analysis caching in seconds | int |
86400 |
|
url_signing.enabled |
When set to true, all the file urls will be signed | bool |
false |
|
url_signing.unit |
Defines the unit for the expiration time | string |
minutes |
The expiration time must not exceed 1 week |
url_signing.value |
Defines the value for the expiration time | int |
10 |
For a full list of updated configuration options, please refer to the full documentation at https://oneduo.github.io/nova-file-manager/configuration.html
Authors
See also the list of contributors who participated in this project.
Screenshots
You can find more screenshots here https://oneduo.github.io/nova-file-manager/screenshots.html.
Changelog
Please see CHANGELOG for more information what has changed recently.
Security
If you discover any security related issues, please email charaf@rezrazi.fr instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
oneduo/nova-file-manager 适用场景与选型建议
oneduo/nova-file-manager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 421.5k 次下载、GitHub Stars 达 159, 最近一次更新时间为 2022 年 09 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「file」 「filesystem」 「manager」 「nova」 「tool」 「multiple」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 oneduo/nova-file-manager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 oneduo/nova-file-manager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 oneduo/nova-file-manager 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A SDK for working with B2 cloud storage.
A PHP class providing static methods for reading, writing, copying, moving, and deleting files and directories, MIME type detection, image size detection, and file permission management
The file manager intended for using Laravel with CKEditor / TinyMCE / Colorbox
The flysystem adapter for yandex disk rest api.
A sleek PHP wrapper around rclone with Laravel-style fluent API syntax
Laravel Media Popup to upload/view the files
统计信息
- 总下载量: 421.5k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 159
- 点击次数: 24
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-23


