PHPackages                             psys/utils-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. psys/utils-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

psys/utils-bundle
=================

Set of utilities for Symfony

v1.0.2(4mo ago)017MITPHPPHP &gt;=8.1

Since Sep 23Pushed 4mo agoCompare

[ Source](https://github.com/DavidPetrasek/UtilsBundle)[ Packagist](https://packagist.org/packages/psys/utils-bundle)[ RSS](/packages/psys-utils-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (4)Used By (0)

[![Packagist Downloads](https://camo.githubusercontent.com/c0e0802ce6b74103e9f6f90d7feeeb80128931df6780659f53cf8018ac5c89bf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f707379732f7574696c732d62756e646c653f7374796c653d666c6174)](https://packagist.org/packages/psys/utils-bundle)

UtilsBundle
===========

[](#utilsbundle)

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

[](#installation)

`composer req psys/utils-bundle`

Usage
-----

[](#usage)

### FileUploader

[](#fileuploader)

```
use Psys\UtilsBundle\Service\FileUploader;
...
FileUploader $fileUploader
...
$uploadedFile = $form->get('my_file')->getData();
$savedFile = $fileUploader->saveFile($uploadedFile, '/abs/path/target-dir');

print_r($savedFile);
```

$savedFile:

```
[
    'nameFileSystem' => 'dfb93338.pdf',
    'nameDisplay' => 'invoice.pdf',
    'mimeType' => 'application/pdf',
]
```

### FormErrors

[](#formerrors)

```
use Psys\UtilsBundle\Service\FormErrors;
...
FormErrors $formErrors
...
$form->handleRequest($request);

if ($form->isSubmitted())
{
    ...
    if (!$form->isValid())
    {
        $formErrorsRes = $formErrors->getArray($form)
        print_r($formErrorsRes);
    }
}
```

$formErrorsRes:

```
[
    [
        'field_id' => 'login_email',
        'message' => 'E-mail not found'
    ],
    [
        'field_id' => 'login_password',
        'message' => 'The password is wrong'
    ]
]
```

### Miscellaneous

[](#miscellaneous)

```
use Psys\UtilsBundle\Service\Misc;
...
Misc $utilsMisc
```

Available methods:

- isEmailValid

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance74

Regular maintenance activity

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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.

###  Release Activity

Cadence

Every ~47 days

Total

3

Last Release

143d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d5dd63a0c39f21c1b23f44b84b9ffbacf700f2dd584d0c59e80fbc4a635f43d?d=identicon)[davidpetrasek](/maintainers/davidpetrasek)

---

Top Contributors

[![DavidPetrasek](https://avatars.githubusercontent.com/u/112466629?v=4)](https://github.com/DavidPetrasek "DavidPetrasek (6 commits)")

---

Tags

file-uploaderform-errorssymfonysymfony-bundleutilitiessymfonyutilitiesSymfony Bundlefile-uploaderform-errors

### Embed Badge

![Health badge](/badges/psys-utils-bundle/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M310](/packages/easycorp-easyadmin-bundle)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[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)[pugx/autocompleter-bundle

Add an autocomplete type to forms

93861.6k3](/packages/pugx-autocompleter-bundle)[contao/core-bundle

Contao Open Source CMS

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

PHPackages © 2026

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