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

ActiveSymfony-bundle

paradise/file-bundle
====================

Symfony FileBundle

07PHP

Since Jun 5Pushed 8y ago1 watchersCompare

[ Source](https://github.com/florianmarical/Paradise-FileBundle)[ Packagist](https://packagist.org/packages/paradise/file-bundle)[ RSS](/packages/paradise-file-bundle/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Paradise FileBundle
===================

[](#paradise-filebundle)

### Installing

[](#installing)

Attention the template use Gedmo Uploadable !

Composer.json

```
"require": {
       ...,
        "paradise/file-bundle": "dev-master"
    },

```

config.yml

```
twig:
    form_themes:
        - 'FileBundle:Form:fields.html.twig'

```

Uses
----

[](#uses)

In an entity

```
    /**
     * @var File
     *
     * @ORM\OneToOne(targetEntity="Paradise\FileBundle\Entity\File", cascade={"persist", "remove"})
      @ORM\JoinColumn(name="favicon")
     * @Assert\File(
     *     maxSize = "2M",
     *     mimeTypes = {"image/jpeg", "image/gif", "image/png"},
     *     mimeTypesMessage = "The selected file is not a valid file",
     *     notFoundMessage = "The file was not found on the disk",
     *     uploadErrorMessage = "Error in upload file"
     * )
     */
    private $favicon;

```

In formType

```
$builder->add('favicon', FileUploadType::class, array('attr' => array('placeholder' => 'Favicon'), 'required' => false, 'path' => true));

```

If path is true, the picture appears in the render

Uses
----

[](#uses-1)

In a controller for the upload. Attention at the parameter. he is in parameter.yml.

example: parameters: file: directory: 'uploads/directory'

```
$path = $this->getParameter('file')['site_directory'] . $site->getId();
$this->get('ServiceFile')->uploadFile($site->getFavicon(), $path);

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/768686124f2c1130a4b5203c1640cfcfd7c697548f349ad425764b47c7db7eb2?d=identicon)[florianmarical](/maintainers/florianmarical)

---

Top Contributors

[![florianmarical](https://avatars.githubusercontent.com/u/12795584?v=4)](https://github.com/florianmarical "florianmarical (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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