PHPackages                             exploring/fileutility - 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. exploring/fileutility

ActiveLibrary

exploring/fileutility
=====================

File utility bundle

3.2(4y ago)4178MITPHPPHP &gt;=7.1CI failing

Since Jun 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jperovic/exploring-fileutility)[ Packagist](https://packagist.org/packages/exploring/fileutility)[ RSS](/packages/exploring-fileutility/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (24)Used By (0)

FileUtilityBundle
=================

[](#fileutilitybundle)

-

This bundle aims to help management of files that were sent thought the form.

Symfony2 does a great job with converting raw file data into UploadedFile object and the goal of this bundle is to further extend it.

Installation (via composer)
---------------------------

[](#installation-via-composer)

To install FileUtilityBundle with Composer just add the following to your composer.json file:

```
{
    // ...
    require: {
        "exploring/fileutility": "dev-master"
    }
}

```

> Please replace the "dev-master" with some concrete release.

Then run:

```
php composer.phar update

```

And register the bundle within `AppKernel.php`

```
$bundles = array(
    ....
    new Exploring\FileUtilityBundle\ExploringFileUtilityBundle(),
);
```

You are all set.

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

[](#configuration)

The bundle uses several configutaion entries. However, the minimalistic configuation should look like:

```
exploring_file_utility:
    upload_root: %kernel.root_dir%/../web/uploads
```

All file are uploaded to a specific subdirectory of `upload_root` path. You can have as many subdirectories as you like.

You can read full [configuration reference here](Resources/doc/reference.md).

> Notice: Concept of directory "alias" has been removed in v2.0. Directories are now auto discovered during the warm up process. If you instantiate FileManager manually, you can still set available directories.

> Advice: Either keep your upload root diretory out of web public directory or ensure proper access rights to file stored there in order to avoid execution of files uploaded.

Basic usage
-----------

[](#basic-usage)

You need to use service names `exploring_file_utility.manager` in order to gain access to `FileManager`:

```
$file = ...; // instance of UploadedFile
$fileManager = $this->get('exploring_file_utility.manager');
$fileDescriptor = $fileManager->save($file, 'foo');
$fileManager->commit();
```

The example above takes some arbitrary file and, given the configuration above, uploads it to `/path/to/symfonyapp/web/uploads/foo`.

FileManager's operations are transaction based. That means that any changes made to the file-system will be reverted back unless you call`commit()`:

You can invoke `rollback()` to revert any changes as well at any time:

```
$fileManager->rollback();
```

Examples
--------

[](#examples)

Various examples, both simple and advances, can be found in [example document](Resources/doc/examples.md)

Image manipulations
-------------------

[](#image-manipulations)

This bundle comes with some image manipulations operations built-in. Complete documentation on those can be found [here](Resources/doc/images.md)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

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

Recently: every ~58 days

Total

21

Last Release

898d ago

Major Versions

1.4 → 2.0-beta2015-04-17

2.0-beta31 → 3.02019-03-10

2.x-dev → 3.22022-05-06

PHP version history (2 changes)1.0PHP &gt;=5.3.3

3.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/6410e1381689a1204c909d14aa4b6843f5c4a8649a7d12b82856cf3b1bc7a2ed?d=identicon)[jperovic](/maintainers/jperovic)

---

Top Contributors

[![jperovic](https://avatars.githubusercontent.com/u/1048965?v=4)](https://github.com/jperovic "jperovic (47 commits)")

### Embed Badge

![Health badge](/badges/exploring-fileutility/health.svg)

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

###  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)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

81733.7k](/packages/flow-php-flow)

PHPackages © 2026

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