Download the PHP package duyld2108/laravel-file-manager without Composer
On this page you can find all versions of the php package duyld2108/laravel-file-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download duyld2108/laravel-file-manager
More information about duyld2108/laravel-file-manager
Files in duyld2108/laravel-file-manager
Package laravel-file-manager
Short Description Standalone Advanced File Manager for Laravel with Intervention Image v4.1+ support, auto image resizing, WebP/AVIF conversion, disk thumbnail cache and enterprise security
License MIT
Homepage https://github.com/duyld2108/laravel-file-manager
Informations about the package laravel-file-manager
Laravel File Manager (Enhanced Edition)
An advanced, enterprise-ready File Manager package for Laravel 10, 11, and 12+.
Originally created by Aleksandr Manekin, this enhanced edition brings full compatibility with Intervention Image v4.1+, Automated Image Resizing on upload, Format Conversion (WebP / AVIF), Disk-based Thumbnail Caching, and Multi-layered Security Hardening based on UniSharp standards and recent CVE audits.
🌟 Key Features & Improvements
- Intervention Image v4.1+ & PHP 8.3/8.4 Support:
- Fully compatible with
intervention/image-laravel: ^4.1andintervention/image: ^4.0. - Replaced deprecated
read()with transparent decoding (decodeBinary(),scaleDown(), andencodeUsingFormat()). - Seamless fallback support for Intervention Image v3.
- Fully compatible with
- Auto Image Resizing on Upload:
- Automatically downsizes massive smartphone and camera photos (e.g. 4000x3000px, 15MB) to configurable dimensions (
max_width: 2048,max_height: 2048). - Employs proportional
scaleDownalgorithm: preserves aspect ratio and never stretches or upscales smaller images.
- Automatically downsizes massive smartphone and camera photos (e.g. 4000x3000px, 15MB) to configurable dimensions (
- Modern Format Conversion (WebP & AVIF):
- Automatically converts raster images (
.jpg,.jpeg,.png,.bmp) to modern next-gen web formats (WebP or AVIF). - Configurable lossy compression quality (default:
85%), saving up to 70% storage and bandwidth. - Built-in
keep_original_when_largersafety check: if the optimized version is larger than the original, the original is retained.
- Automatically converts raster images (
- Disk-based Thumbnail Caching:
- Thumbnails (120x120px) are pre-generated upon upload and saved directly into a hidden
.thumbs/directory on your storage disk. - Eliminates on-the-fly thumbnail generation in RAM/CPU, reducing server resource consumption by over 90% when browsing folders with hundreds of images.
- Automatically syncs thumbnail deletion on file removal and thumbnail renaming on file rename.
- Thumbnails (120x120px) are pre-generated upon upload and saved directly into a hidden
- Multi-Layered Security Hardening (UniSharp Standard):
- MIME-Type Verification: Uses PHP's
fileinfoextension ($file->getMimeType()) to inspect actual magic bytes, rejecting forged client headers. - Executable Upload Blocking: Strictly prohibits
.php,.php3-.php8,.phtml,.phar,.html,.exe,.sh,.bat,.cmd,.cgi,.pl,.js,.env,.htaccessfiles. - Zip Slip Defense (CVE-2025-65346): Inspects all entry paths inside zip archives prior to extraction, completely neutralizing Directory Traversal attacks.
- MIME-Type Verification: Uses PHP's
- Modernized UI & Dark Mode:
- Blade views upgraded to Bootstrap 5.3.3 with the clean Inter font family.
- Auto Dark Mode: Detects system preferences (
prefers-color-scheme: dark) and activates dark theme automatically. - Dynamic responsive container height recalculation on window resize.
- Drop-in Replacement:
- Uses the same internal namespaces and Blade view prefixes as
alexusmai/laravel-file-manager. Upgrading requires zero changes to existing controllers or views!
- Uses the same internal namespaces and Blade view prefixes as
📋 System Requirements
| Component | Supported Version |
|---|---|
| PHP | ^8.2, ^8.3, ^8.4 |
| Laravel Framework | ^10.0, ^11.0, ^12.0, ^13.0 |
| Intervention Image Laravel | ^1.2.0 or ^4.0 / ^4.1 |
| PHP Extensions | ext-fileinfo, ext-zip, ext-json, GD or Imagick |
| Flysystem | league/flysystem: ^3.0 |
📥 Installation
Install the package via Composer:
Publish Configuration & Assets
Publish the configuration file:
Publish the frontend Vue.js assets (JavaScript and CSS):
Ensure your Laravel storage is linked to the public directory:
⚙️ Configuration (config/file-manager.php)
After publishing, check config/file-manager.php. Here are the most important settings:
1. Image Optimization & Auto-Resize
2. Disk Thumbnail Caching
3. Security & Upload Filtering
4. Disk & Routing Settings
🖥️ WYSIWYG Editor Integrations
1. Standalone Popup Button (Input Field Integration)
In your Blade template:
2. CKEditor 4 Integration
3. TinyMCE 5 / 6 Integration
4. Summernote Integration
🔄 Migration to duyld2108/laravel-file-manager
To migrate to this standalone package, simply update your root composer.json:
In your published config/file-manager.php, update the repository classes to the new namespace:
Or re-publish the fresh configuration file with all parameters:
🛡️ Security Policy
If you discover a security vulnerability, please submit an issue or send an email to [email protected].
📄 License
The MIT License (MIT). Please see LICENSE.md for more information.
- Original Creator: Aleksandr Manekin
- Enhanced Edition Maintainer: Le Duc Duy
All versions of laravel-file-manager with dependencies
ext-zip Version *
ext-json Version *
ext-fileinfo Version *
laravel/framework Version ^10.0|^11.0|^12.0|^13.0
league/flysystem Version ^3.0
intervention/image-laravel Version ^1.2.0|^4.0