定制 mydnic/filament-file-browser 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mydnic/filament-file-browser

Composer 安装命令:

composer require mydnic/filament-file-browser

包简介

A S3-compatible file browser to list, delete and upload files on any configured disks

README 文档

README

A clean and modern file browser plugin for Filament that allows you to browse, upload, and manage files across different filesystem disks, including S3 buckets. The interface mimics traditional OS file explorers like Dolphin on Linux.

Features

  • 🗂️ Multi-disk Support: Browse files on any configured Laravel filesystem disk (local, S3, etc.)
  • 📁 Folder-first Listing: Displays folders first, then files (like traditional file explorers)
  • Multi-selection: Select multiple files/folders with checkboxes for bulk operations
  • 📤 File Upload: Upload files directly to the current directory
  • 📥 Download: Download individual files or multiple files as ZIP
  • 🗑️ Delete: Delete files and folders with confirmation
  • 🔗 Open in New Tab: Open files in a new browser tab
  • 🧭 Breadcrumb Navigation: Easy navigation through directory structure
  • 🎨 Native Filament Components: Uses Filament's native UI components for consistency

Installation

Install the package via Composer:

composer require mydnic/filament-file-browser

Publish the configuration file:

php artisan vendor:publish --tag="filament-file-browser-config"

Usage

Register the Plugin

Add the plugin to your Filament panel in your PanelProvider:

use Mydnic\FilamentFileBrowser\FilamentFileBrowserPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        // ... other configuration
        ->plugins([
            FilamentFileBrowserPlugin::make(),
        ]);
}

Configuration

The plugin can be configured via the published configuration file config/filament-file-browser.php:

return [
    // The default disk to use when the file browser is first loaded
    'default_disk' => 'public',

    // Navigation settings
    'navigation_group' => 'Files',
    'navigation_sort' => 0,

    // Temporary directory for zip downloads
    'temp_directory' => storage_path('app/temp'),

    // Maximum upload file size in MB
    'max_upload_size' => 10,

    // Allowed file extensions for upload (empty array means all extensions are allowed)
    'allowed_extensions' => [],

    // Disks to show in the file browser (empty array means all disks are shown)
    'disks' => [],
];

Filesystem Configuration

Make sure your filesystem disks are properly configured in config/filesystems.php. For S3:

'disks' => [
    's3' => [
        'driver' => 's3',
        'key' => env('AWS_ACCESS_KEY_ID'),
        'secret' => env('AWS_SECRET_ACCESS_KEY'),
        'region' => env('AWS_DEFAULT_REGION'),
        'bucket' => env('AWS_BUCKET'),
        'url' => env('AWS_URL'),
        'endpoint' => env('AWS_ENDPOINT'),
        'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
    ],
],

Architecture

The plugin follows a clean, modern architecture:

  • FileBrowserPage: Main Filament page using native components
  • FileBrowserService: Handles all file operations (upload, delete, zip creation)
  • Native Filament Components: Uses Filament's built-in form components, actions, and UI elements
  • Custom Table View: Only the file browser table uses a custom Blade view for optimal UX

Requirements

  • PHP 8.1+
  • Laravel 10.0+
  • Filament 3.0+

License

The MIT License (MIT). Please see License File for more information.

mydnic/filament-file-browser 适用场景与选型建议

mydnic/filament-file-browser 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 718 次下载、GitHub Stars 达 2, 最近一次更新时间为 2025 年 08 月 11 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「laravel」 「mydnic」 「filament-file-browser」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 mydnic/filament-file-browser 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 mydnic/filament-file-browser 我们能提供哪些服务?
定制开发 / 二次开发

基于 mydnic/filament-file-browser 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 718
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 14
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-11