PHPackages                             kapitanpulido/storagefile - 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. kapitanpulido/storagefile

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

kapitanpulido/storagefile
=========================

Laravel Storage File Upload

1.0.0(5y ago)0102MITPHP

Since Apr 19Pushed 5y ago1 watchersCompare

[ Source](https://github.com/kapitanpulido/storagefile)[ Packagist](https://packagist.org/packages/kapitanpulido/storagefile)[ RSS](/packages/kapitanpulido-storagefile/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Laravel Storage File Upload
===========================

[](#laravel-storage-file-upload)

This Laravel package contains methods for:

- Generating unique filename
- Saving uploaded file on a folder
- Deleting file on a folder

Uploaded files will be saved on the storage folder *(storage/app/public)*.

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

[](#installation)

```
composer require kapitanpulido/storagefile
```

Usage
-----

[](#usage)

```
use kapitanpulido\StorageFile\StorageFile;

$model = Model::find($id);

if ($file = $request->file('element')){
  if ($model->filename){
    StorageFile::deleteFile('my_folder', $model->filename);
  }

  $unique_filename = StorageFile::generateUniqueFileName('my_folder', $file->getClientOriginalName());

  StorageFile::saveFile($file, 'my_folder', $unique_filename);
}
```

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

Donate
------

[](#donate)

If you can afford, please consider [donating](https://www.paypal.me/kapitanpulido), but no worries if you cannot, use this for absolutely free.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Unknown

Total

1

Last Release

1894d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/aa91ef2d8916365a295c574aa92bd13b8006d025353b1c18f283958179f3fbd8?d=identicon)[kapitanpulido](/maintainers/kapitanpulido)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/kapitanpulido-storagefile/health.svg)

```
[![Health](https://phpackages.com/badges/kapitanpulido-storagefile/health.svg)](https://phpackages.com/packages/kapitanpulido-storagefile)
```

PHPackages © 2026

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