PHPackages                             antonio150/uploadimagebundle - 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. antonio150/uploadimagebundle

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

antonio150/uploadimagebundle
============================

Un bundle Symfony pour l'upload d'images

0273PHP

Since Jan 13Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/antonio150/UploadImageBundle)[ Packagist](https://packagist.org/packages/antonio150/uploadimagebundle)[ RSS](/packages/antonio150-uploadimagebundle/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

UploadImageBundle
=================

[](#uploadimagebundle)

Introduction
------------

[](#introduction)

The `UploadImageBundle` is a Symfony bundle that provides an easy way to upload and manage files in your Symfony application.

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

[](#installation)

To install the bundle, use Composer:

```
composer require antonio150/uploadimagebundle:dev-main
```

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

[](#configuration)

Run commande to choose path to store file

```
symfony console upload-image-bundle:install
```

Add the bundle to your `config/bundles.php` file if missing:

```
return [
    // ...
    UploadImageBundle\UploadImageBundle::class => ['all' => true],
];
```

Usage
-----

[](#usage)

To use the bundle

**Edit your `controller` :**

```
     namespace App\Controller;
     use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
     use Symfony\Component\HttpFoundation\Request;
     use Symfony\Component\HttpFoundation\Response;
     use Symfony\Component\Routing\Attribute\Route;
     use UploadImageBundle\Service\FileUploader;

     final class UploadimageController extends AbstractController{

         #[Route('/uploadimage', name: 'app_uploadimage')]
         public function upload(Request $request, FileUploader $fileUploader): Response
         {
             $file = $request->files->get('file'); // Récupérer le fichier depuis la requête
             if (!$file) {
                 return $this->json(['error' => 'Aucun fichier envoyé'], Response::HTTP_BAD_REQUEST);
             }

             try {
                 $result = $fileUploader->upload($file); // To get path and file name
                 return $this->json($result);
             } catch (\Exception $e) {
                 return $this->json(['error' => $e->getMessage()], Response::HTTP_BAD_REQUEST);
             }
         }

     }
```

Voici exemple de résultat

```
{
  "fileName" => "696646055d19e.jpg"
  "absolute_path" => "E:\Mes Projets\piasako2\public\uploads\images\696646055d19e.jpg"
  "public_path" => "/uploads/images/696646055d19e.jpg"
  "public_dir" => "/uploads/images"
}

```

Contact
-------

[](#contact)

Portfolio : [antonio navira](https://portfolio-navira.vercel.app/)

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance48

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47793948?v=4)[ANDRIANAVALONA Yves Antonio Rollande](/maintainers/antonio150)[@antonio150](https://github.com/antonio150)

---

Top Contributors

[![antonio150](https://avatars.githubusercontent.com/u/47793948?v=4)](https://github.com/antonio150 "antonio150 (44 commits)")

### Embed Badge

![Health badge](/badges/antonio150-uploadimagebundle/health.svg)

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

PHPackages © 2026

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