PHPackages                             evmusonov/laravel-file-helper - 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. evmusonov/laravel-file-helper

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

evmusonov/laravel-file-helper
=============================

Simple file uploader for documents and images with resize opportunity

v1.0.2(6y ago)014MITPHP

Since Mar 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/evmusonov/laravel-file-helper)[ Packagist](https://packagist.org/packages/evmusonov/laravel-file-helper)[ RSS](/packages/evmusonov-laravel-file-helper/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (4)Used By (0)

laravel-file-helper
-------------------

[](#laravel-file-helper)

Simple file uploader for documents and images with resize opportunity

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

[](#installation)

1. Install package from composer

> composer require evmusonov/laravel-file-helper

2. Add provider into your config/app.php

> Evmusonov\\LaravelFileHelper\\FileHelperServiceProvider::class

3. Do this command to publish the config file

> php artisan vendor:publish

4. Execute this command for database tables migration. 'File' table will be created.

> php artisan migrate

5. Final step is to configure config/filehelper.php

Package contains two types of files: images (jpg, png, ...) and documents (pdf, docx, ...). So you can configure mimes for yourself in `documentExtensions` and `imageExtensions` settings.

By default, config contains `pathToStorage`, it means you may write your own path for storage, but default path is recommended for usage.

If you want to set own versions for resizing, you can put it in `versions` setting, follow the example in the config file.

Usage
-----

[](#usage)

1. Create a file manager

> $uploadManager = new FileManager();

2. Create uploader

> $imageUploader = $uploadManager-&gt;createImageUploder('put your file input name');

3. Upload your file

> $imageUploader-&gt;upload('path/to/\[module\]/\[id\]');

### Note!

[](#note)

Path for future file must contain module directory and item's id in the end of the sentence.

#### Examples

[](#examples)

You may write `$imageUploader->upload('user/1');` or `$imageUploader->upload('somefolder/anotherfolder/user/1');`

(optional) 4. If you want to resize your image

> $imageUploader-&gt;upload('user/1')-&gt;resize('your version');

#### Examples

[](#examples-1)

> $imageUploader-&gt;upload('user/1')-&gt;resize('200x200');

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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 ~1 days

Total

3

Last Release

2263d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/280750cae58b18ce2c26020a49447019a5bdf323753b4ac7cab3615ec9342c1b?d=identicon)[evmusonov](/maintainers/evmusonov)

---

Top Contributors

[![evmusonov](https://avatars.githubusercontent.com/u/38518146?v=4)](https://github.com/evmusonov "evmusonov (18 commits)")

### Embed Badge

![Health badge](/badges/evmusonov-laravel-file-helper/health.svg)

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

###  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.8M125](/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)
