PHPackages                             sarowar/laravel-dynamic-file-upload - 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. sarowar/laravel-dynamic-file-upload

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

sarowar/laravel-dynamic-file-upload
===================================

A Laravel package for handling file uploads with support for validation, multiple file types, and storage options (local, s3, etc.).

2.0.0(6mo ago)035MITPHP

Since Oct 24Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/mdsarowar/laravel_file_upload)[ Packagist](https://packagist.org/packages/sarowar/laravel-dynamic-file-upload)[ RSS](/packages/sarowar-laravel-dynamic-file-upload/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (6)Used By (0)

LaravelFileUpload
=================

[](#laravelfileupload)

LaravelFileUpload is a simple package for uploading and processing files `(images, PDFs, etc.)` in a Laravel application. It supports image resizing using the `Intervention Image` library and allows you to handle file uploads to both public and storage directories.

Version
-------

[](#version)

**Current Version:** 2.0.0

Features
--------

[](#features)

```
- Upload files (images, PDFs, etc.)
- Resize images (optional)
- Save files to public or storage directories
- Automatic directory creation if it doesn't exist
- Handles deletion of existing files before uploading a new one

```

Installation
------------

[](#installation)

You can install the package via Composer:

```
composer require sarowar/laravel-dynamic-file-upload
```

Publishing Configuration
------------------------

[](#publishing-configuration)

To publish the configuration file, run the following command:

```
php artisan vendor:publish --provider="Sarowar\LaravelFileUpload\FileUploadServiceProvider"
```

- This will create a configuration file named `sarowar-file-upload.php` in the config directory of your Laravel application. You can customize the settings in this file according to your requirements.

Usage
-----

[](#usage)

Here’s a basic example of how to use the slug generator:

```
use Sarowar\LaravelFileUpload\FileUpload;
```

```
// Create an instance of the fileupload
$fileUpload = new FileUpload();
```

```
// Generate a fileupload
 $fileUpload->fileUpload( $uploadedFile, // Image object
            'uploads/',    // Upload directory
            'static-pdf',// Image name prefix
            '300',//width in this image
            '300',// Height in this image
            'webp'// extension in this image if you want to change
        );
```

Configuration
-------------

[](#configuration)

You can customize the slug generation by modifying the `config/sarowar-file-upload.php` file. Options include:

-`'file_path' => 'storage', `// Change to 'storage' if you prefer to use the storage folder

Contributing
------------

[](#contributing)

- Contributions are welcome! Please open an issue or submit a pull request.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance66

Regular maintenance activity

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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

Every ~91 days

Total

5

Last Release

201d ago

Major Versions

v1.2.1 → 2.0.02025-10-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ebb9bd3ff559402002506c4ab267dc898dc18f4acdf907d9b6395902eee5770?d=identicon)[smsarowar](/maintainers/smsarowar)

---

Top Contributors

[![mdsarowar](https://avatars.githubusercontent.com/u/48769295?v=4)](https://github.com/mdsarowar "mdsarowar (7 commits)")

### Embed Badge

![Health badge](/badges/sarowar-laravel-dynamic-file-upload/health.svg)

```
[![Health](https://phpackages.com/badges/sarowar-laravel-dynamic-file-upload/health.svg)](https://phpackages.com/packages/sarowar-laravel-dynamic-file-upload)
```

###  Alternatives

[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.3M74](/packages/unisharp-laravel-filemanager)[barryvdh/elfinder-flysystem-driver

A Flysystem Driver for elFinder

1864.7M31](/packages/barryvdh-elfinder-flysystem-driver)[itskodinger/midia

Simple Media manager for your Laravel project

1415.8k](/packages/itskodinger-midia)[jeremytubbs/deepzoom

Deepzoom Tile Generator for OpenSeadragon

5018.7k2](/packages/jeremytubbs-deepzoom)[farhanshares/laravel-mediaman

MediaMan - The most elegant &amp; powerful media management package for Laravel!

293.7k](/packages/farhanshares-laravel-mediaman)[xefi/faker-php-images

Faker extension to generate images

402.6k](/packages/xefi-faker-php-images)

PHPackages © 2026

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