PHPackages                             tadasei/backend-file-management - 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. tadasei/backend-file-management

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

tadasei/backend-file-management
===============================

A package that provides stubs for managing file associations with models

v2.7.2(5mo ago)11461MITPHPPHP ^8.1.0

Since Feb 11Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/Tadasei/backend-file-management)[ Packagist](https://packagist.org/packages/tadasei/backend-file-management)[ RSS](/packages/tadasei-backend-file-management/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (18)Used By (1)

Tadasei/backend-file-management
===============================

[](#tadaseibackend-file-management)

This package provides stubs for managing files in the backend of a Laravel application. It aims to simplify and streamline common Store, Update and Delete file operations by providing pre-defined structures.

Features
--------

[](#features)

- Quickly generate file management migrations, models, validation rules and handling logic.
- Customize and extend generated code to fit your project's needs.
- Improve development efficiency by eliminating repetitive tasks.

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

[](#installation)

You can install the package via Composer by running:

```
composer require tadasei/backend-file-management --dev
```

Usage
-----

[](#usage)

### Publishing file management utilities

[](#publishing-file-management-utilities)

To publish file management utilities, use the following command:

```
php artisan file-management:install
```

#### Integration with HandleCors Middleware

[](#integration-with-handlecors-middleware)

The package also provides a route file, controller, and policy to help integrate Laravel's built-in `HandleCors` middleware with the storage directory's files. This allows you to manage cross-origin file requests and ensure smooth file handling across different domains.

To publish the `HandleCors` middleware integration files, add the `--with-cors` flag to the command:

```
php artisan file-management:install --with-cors
```

The following files will be generated:

- **Route**: `routes/resources/file.php`
- **Controller**: `app/Http/Controllers/FileController.php`
- **Policy**: `app/Policies/FilePolicy.php`

By default:

- The generated routes are guarded by the `auth:sanctum` middleware.
- The `FileController`'s `download` method is authorized using the `FilePolicy`.
- The `FilePolicy`'s `download` method is pre-configured to return `true`, granting access to file downloads.

You can customize the route file, controller, and policy to fit your project's specific requirements and security policies.

### Customization

[](#customization)

The generated code serves as a starting point. You can customize and extend it according to your project's requirements. Modify the generated migrations, models, traits and validation rules as needed.

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

[](#contributing)

Contributions are welcome! If you have suggestions, bug reports, or feature requests, please open an issue on the GitHub repository.

License
-------

[](#license)

This package is open-source software licensed under the [MIT license](LICENSE).

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance73

Regular maintenance activity

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

Recently: every ~32 days

Total

17

Last Release

151d ago

Major Versions

v1.1.0 → v2.0.02024-05-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f56b423b676a1de482a2c09129ce3bfd92a62fdad2dedbed6d9837c3fe7f81d?d=identicon)[Tadasei](/maintainers/Tadasei)

---

Top Contributors

[![Tadasei](https://avatars.githubusercontent.com/u/93480860?v=4)](https://github.com/Tadasei "Tadasei (26 commits)")

---

Tags

laravelstubsfilebackend

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tadasei-backend-file-management/health.svg)

```
[![Health](https://phpackages.com/badges/tadasei-backend-file-management/health.svg)](https://phpackages.com/packages/tadasei-backend-file-management)
```

###  Alternatives

[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M601](/packages/laravel-ui)[laravel/breeze

Minimal Laravel authentication scaffolding with Blade and Tailwind.

3.0k31.3M148](/packages/laravel-breeze)[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)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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