PHPackages                             victor-codigo/upload-file - 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. victor-codigo/upload-file

ActiveLibrary

victor-codigo/upload-file
=========================

Classes to manage file uploads

v1.0.2(1y ago)0431MITPHP

Since Feb 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Victor-codigo/UploadFile)[ Packagist](https://packagist.org/packages/victor-codigo/upload-file)[ RSS](/packages/victor-codigo-upload-file/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (4)Used By (1)

Upload file
===========

[](#upload-file)

Classes to manage file upload with symfony or package http-foundation.

This package is in charge of Geting the file uploaded, and move it to a new path, with a secure name.
It also allows to replace a file by the new uploaded.

Prerequisites
-------------

[](#prerequisites)

- PHP 8.1
- Symfony 6.4 or package http-foundation

Stack
-----

[](#stack)

- [PHP 8.1](https://www.php.net/)
- [Symfony 6.4](https://symfony.com/)
- [PHPUnit 11.5](https://phpunit.de/index.html)
- [PHPStan](https://phpstan.org)
- [Composer](https://getcomposer.org/)

Usage
-----

[](#usage)

1. Install

    ```
    composer require victor-codigo/upload-file

    ```
2. Classes

    - UploadFileService: It is the main class. Manages file uploads.
    - FileSymfonyAdapter: It is a wrapper for http-foundation package class File.
    - UploadedFileSymfonyAdapter: Its a wrapper for http-foundation package class UploadedFile.

```
```

#### UploadFileService methods:

[](#uploadfileservice-methods)

MethodDescriptionParamsReturn**\_\_construct**Creates class instanceSymfony\\Component\\String\\Slugger\\SluggerInterfaceVictorCodigo\\UploadFile\\Adapter\\UploadFileService**\_\_invoke**Moves the uploaded file to a new location1. VictorCodigo\\UploadFile\\Domain\\UploadedFileInterface: The file uploaded.
2. string: path where files are uploaded.
3. string or null: File name to remove in uploads path.VictorCodigo\\UploadFile\\Domain\\FileInterface**getFileName**Gets the name of the file, after been renamedstring**getNewInstance**Creates a new instance of the classVictorCodigo\\UploadFile\\Adapter\\UploadFileService

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance46

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

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

457d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/72442680ed2aa145f8ecb5f5a8433a52cb33f324b3b1b1dcbec3051f8ea8f84a?d=identicon)[Victor-codigo](/maintainers/Victor-codigo)

---

Top Contributors

[![Victor-codigo](https://avatars.githubusercontent.com/u/60933176?v=4)](https://github.com/Victor-codigo "Victor-codigo (3 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/victor-codigo-upload-file/health.svg)

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

###  Alternatives

[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k172.9M1.8k](/packages/symfony-security-bundle)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[laravel/reverb

Laravel Reverb provides a real-time WebSocket communication backend for Laravel applications.

1.6k9.4M48](/packages/laravel-reverb)[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k5](/packages/elgg-elgg)[api-platform/http-cache

API Platform HttpCache component

223.2M7](/packages/api-platform-http-cache)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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