PHPackages                             mr-chauhan/quick-file-uploader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. mr-chauhan/quick-file-uploader

ActiveLibrary[File &amp; Storage](/categories/file-storage)

mr-chauhan/quick-file-uploader
==============================

A simple and customizable Laravel package for handling file uploads with validation, error logging, and facade support.

v1.0.1(1y ago)01MITPHP

Since Apr 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jaydeep892/quickfileuploader)[ Packagist](https://packagist.org/packages/mr-chauhan/quick-file-uploader)[ RSS](/packages/mr-chauhan-quick-file-uploader/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

📁 Laravel File Handler Package
==============================

[](#-laravel-file-handler-package)

A simple and customizable Laravel package for handling file uploads with validation, error logging, and facade support.

---

✨ Features
----------

[](#-features)

- ✅ Upload and replace files easily
- ✅ Validate file extensions and size dynamically
- ✅ Catch and log upload errors to a dedicated log file
- ✅ Facade support (`FileUploader`) for clean and readable usage
- ✅ Auto-creates directory if it doesn't exist
- ✅ Seamless integration into any Laravel project

---

🚀 Installation
--------------

[](#-installation)

```
composer require mr-chauhan/quick-file-uploader
```

⚙️ Configuration
----------------

[](#️-configuration)

**Step 1: Publish the configuration file (optional)**

```
php artisan vendor:publish --tag=fileuploader-config
```

This will create a config file at:

> config/fileuploader.php

**Step 2: (Optional) Define a custom log channel in &gt; config/logging.php**

```
'channels' => [
    'fileuploader' => [
        'driver' => 'single',
        'path' => storage_path('logs/fileuploader.log'),
        'level' => 'info',
    ],
],
```

📦 Usage
-------

[](#-usage)

**Import the facade**

```
use FileUploader;
```

**Call the method from controller or service**

```
$response = FileUploader::uploadAndReplaceFile(
    $existingFileName,          // null or old filename for replacement
    $request->file('document'), // instance of UploadedFile
    public_path('uploads/docs'),// destination folder path
    'document',                 // input field name
    ['pdf', 'jpg', 'docx'],     // allowed file extensions
    2048                        // max size in KB
);
```

**Sample JSON response**

```
{
  "success": true,
  "response": "20250425123456.pdf",
  "message": "File Uploaded Successfully"
}
```

**On validation or error failure:**

```
{
  "success": false,
  "response": null,
  "message": "The file size exceeds 2048KB limit."
}
```

📝 Logging
---------

[](#-logging)

All file upload activities (success or error) are logged in:

```
storage/logs/fileuploader.log
```

🧠 Behind the Scenes
-------------------

[](#-behind-the-scenes)

- Uses Laravel's built-in File and UploadedFile classes.
- Catches and logs exceptions using Laravel’s logging system.
- Returns clean JSON responses to simplify frontend error handling.

🙋‍♂️ Author
-----------

[](#‍️-author)

**Mr. Chauhan**

📄 License
---------

[](#-license)

This package is open-sourced software licensed under the MIT license.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance48

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

380d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b024fb47efbffd10e97b683a2b6cdb2afa5cbac6fccc55144ee373e9c9936d2?d=identicon)[jaydeep892](/maintainers/jaydeep892)

---

Top Contributors

[![jaydeep892](https://avatars.githubusercontent.com/u/207820540?v=4)](https://github.com/jaydeep892 "jaydeep892 (2 commits)")

### Embed Badge

![Health badge](/badges/mr-chauhan-quick-file-uploader/health.svg)

```
[![Health](https://phpackages.com/badges/mr-chauhan-quick-file-uploader/health.svg)](https://phpackages.com/packages/mr-chauhan-quick-file-uploader)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M124](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
