PHPackages                             connectholland/file-upload-bundle - 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. connectholland/file-upload-bundle

Abandoned → [vich/uploader-bundle](/?search=vich%2Fuploader-bundle)ArchivedSymfony-bundle[File &amp; Storage](/categories/file-storage)

connectholland/file-upload-bundle
=================================

File upload functionality for Symfony

v0.1.2(9y ago)01.8k2[2 issues](https://github.com/ConnectHolland/file-upload-bundle/issues)MITPHPPHP ^5.5 | ^7.0

Since Aug 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ConnectHolland/file-upload-bundle)[ Packagist](https://packagist.org/packages/connectholland/file-upload-bundle)[ RSS](/packages/connectholland-file-upload-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

FileUploadBundle
================

[](#fileuploadbundle)

File Upload integration for Symfony 2.4+ and 3+.

Installation using Composer
---------------------------

[](#installation-using-composer)

Run the following command to add the package to the composer.json of your project:

```
$ composer require connectholland/file-upload-bundle
```

### Enable the bundle

[](#enable-the-bundle)

Enable the bundle in the kernel:

```
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new ConnectHolland\FileUploadBundle(),
        // ...
    );
}
```

Usage
-----

[](#usage)

#### 1. Configure the FileUploadBundle for file uploads

[](#1-configure-the-fileuploadbundle-for-file-uploads)

The bundle requires a location to store the file uploads. Configure the location with the existing FileUploadBundle configuration in your `config.yml` file:

```
# app/config/config.yml

file_upload:
    path: "%kernel.root_dir%/../../some-directory-outside-of-the-project/%kernel.environment%"
```

#### 2. Modify your Doctrine entity class

[](#2-modify-your-doctrine-entity-class)

To activate file uploads for a Doctrine entity you need to implement the `UploadObjectInterface` and add getters and setters for the form fields.

For ease of use the FileUploadBundle provides an `UploadTrait` to implement both the interface and the getters and setters:

```
namespace AppBundle\Entity;

use ConnectHolland\FileUploadBundle\Model\UploadObjectInterface;
use ConnectHolland\FileUploadBundle\Model\UploadTrait;

class Entity implements UploadObjectInterface
{
    use UploadTrait {
        getFileUpload as getImageUpload;
        setFileUpload as setImageUpload;
        getFileUpload as getAnotherImageUpload;
        setFileUpload as setAnotherImageUpload;
    }
}
```

In the above example you see the `UploadTrait` with getters and setters for two file upload fields implemented. Here the `getImageUpload` method maps to a field called 'image' and `getAnotherImageUpload` maps to 'another\_image'.

Credits
-------

[](#credits)

- [Niels Nijens](https://github.com/niels-nijens)
- [All Contributors](../../contributors)

### License

[](#license)

This package is licensed under the MIT License. Please see the [LICENSE file](LICENSE.md) for details.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~0 days

Total

3

Last Release

3609d ago

### Community

Maintainers

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

![](https://avatars.githubusercontent.com/u/2697738?v=4)[Ron Rademaker](/maintainers/RonRademaker)[@RonRademaker](https://github.com/RonRademaker)

---

Top Contributors

[![niels-nijens](https://avatars.githubusercontent.com/u/3245362?v=4)](https://github.com/niels-nijens "niels-nijens (8 commits)")[![matthijsch](https://avatars.githubusercontent.com/u/14073380?v=4)](https://github.com/matthijsch "matthijsch (4 commits)")

---

Tags

bundlephpsymfonysymfony-bundle

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/connectholland-file-upload-bundle/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9417.2k55](/packages/open-dxp-opendxp)

PHPackages © 2026

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