PHPackages                             vria/enhanced-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. [File &amp; Storage](/categories/file-storage)
4. /
5. vria/enhanced-file

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

vria/enhanced-file
==================

Enhanced file type for Symfony forms

1.0.2(10y ago)22711MITPHPPHP &gt;=5.5.9

Since Apr 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/riabchenkovlad/enhanced-file)[ Packagist](https://packagist.org/packages/vria/enhanced-file)[ RSS](/packages/vria-enhanced-file/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (5)Versions (8)Used By (0)

VRiaEnhancedFileBundle
======================

[](#vriaenhancedfilebundle)

[![Build Status](https://camo.githubusercontent.com/c32984f4c6c187367bd41a6ca48dbbf5bd98e18d9de2c98c1e594e4329008c40/68747470733a2f2f7472617669732d63692e6f72672f767269612f656e68616e6365642d66696c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/vria/enhanced-file)

File type for Symfony forms with additional functionality:

- if file has been previously uploaded, the download link is rendered
- previously uploaded file can be deleted if new one is uploaded

\##Installation

Using [Composer](http://packagist.org), run:

```
composer require vria/enhanced-file
```

Add the VRiaNoDiacriticBundle to your application kernel:

```
// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new VRia\Bundle\EnhancedFileBundle\VRiaEnhancedFileBundle(),
    );
}
```

\##Use

In Symfony 3 you should use:

```
$form = $this->createFormBuilder()
    ->add('file', EnhancedFileType::class, $options)
    ...
```

While in Symfony ~2.3:

```
$form = $this->createFormBuilder()
    ->add('file', 'enhanced_file', $options)
    ...
```

`$options` is an array of options form FormType Field enlarged with:

- `directory_path` - physycal directory to put files. E.g. `$this->get('kernel')->getRootDir() . '/../web/upload/'`. *Required*
- `public_directory_path` - path from your public directory (often `/web`) to directory with files. E.g. `'/upload/'`. *Required*
- `delete_previous_file` - whether to delete previously uploaded file. Default value is `true`

So, the complete definition could be:

```
$form = $this->createFormBuilder()
    ->add('file', EnhancedFileType::class, array(
        'label' => 'Curriculum vitae',
        'directory_path' => $this->get('kernel')->getRootDir() . '/../web/upload/',
        'public_directory_path' => '/upload/',
        'required' => false
    ))
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Total

6

Last Release

3705d ago

Major Versions

0.0.0 → 1.0.02016-05-05

0.0.1 → 1.0.22016-05-08

PHP version history (3 changes)0.0.0PHP &gt;=5.3.2

1.0.0PHP &gt;=5.5.9

0.0.1PHP &gt;=5.3.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/144b0bc57ca7a98332f844a405b585b5f39f0735210ded14584a2bd1c364b14e?d=identicon)[riabchenkovlad](/maintainers/riabchenkovlad)

---

Top Contributors

[![vria](https://avatars.githubusercontent.com/u/7421651?v=4)](https://github.com/vria "vria (19 commits)")

---

Tags

symfonyfileuploadform

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vria-enhanced-file/health.svg)

```
[![Health](https://phpackages.com/badges/vria-enhanced-file/health.svg)](https://phpackages.com/packages/vria-enhanced-file)
```

###  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)[chameleon-system/chameleon-base

The Chameleon System core.

1027.9k4](/packages/chameleon-system-chameleon-base)[forumify/forumify-platform

122.0k12](/packages/forumify-forumify-platform)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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