PHPackages                             umpirsky/symfony-upgrade-fixer - 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. umpirsky/symfony-upgrade-fixer

ActiveApplication[Utility &amp; Helpers](/categories/utility)

umpirsky/symfony-upgrade-fixer
==============================

Analyzes your Symfony project and tries to make it compatible with the new version of Symfony framework.

v0.1.6(9y ago)273492.9k↓45.2%17[10 issues](https://github.com/umpirsky/Symfony-Upgrade-Fixer/issues)[3 PRs](https://github.com/umpirsky/Symfony-Upgrade-Fixer/pulls)MITPHPPHP &gt;=5.4

Since Nov 12Pushed 8y ago8 watchersCompare

[ Source](https://github.com/umpirsky/Symfony-Upgrade-Fixer)[ Packagist](https://packagist.org/packages/umpirsky/symfony-upgrade-fixer)[ RSS](/packages/umpirsky-symfony-upgrade-fixer/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (2)Versions (11)Used By (0)

###  [ ![](https://camo.githubusercontent.com/4acdbd12ae1b9a9539be7b30f8cef6cd9678ccb45500067152e333743632afd8/68747470733a2f2f6661726d322e737461746963666c69636b722e636f6d2f313730392f32353039383532363838345f616534643530343635665f6f5f642e706e67) ](https://github.com/umpirsky)

[](#----------------)

 **symfony upgrade fixer** • [twig gettext extractor](https://github.com/umpirsky/Twig-Gettext-Extractor) • [wisdom](https://github.com/umpirsky/wisdom) • [centipede](https://github.com/umpirsky/centipede) • [permissions handler](https://github.com/umpirsky/PermissionsHandler) • [extraload](https://github.com/umpirsky/Extraload) • [gravatar](https://github.com/umpirsky/Gravatar) • [locurro](https://github.com/umpirsky/locurro) • [country list](https://github.com/umpirsky/country-list) • [transliterator](https://github.com/umpirsky/Transliterator)

Symfony Upgrade Fixer [![Build Status](https://camo.githubusercontent.com/3a0ebbce8bae9a8e56c1374413160935f2abcef1ed8acbe331d8bb87ae33bd7d/68747470733a2f2f7472617669732d63692e6f72672f756d706972736b792f53796d666f6e792d557067726164652d46697865722e737667)](https://travis-ci.org/umpirsky/Symfony-Upgrade-Fixer)
===================================================================================================================================================================================================================================================================================================================

[](#symfony-upgrade-fixer-)

Analyzes your Symfony project and tries to make it compatible with the new version of Symfony framework.

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

[](#installation)

### Manual

[](#manual)

#### Local

[](#local)

Download the `symfony-upgrade-fixer.phar` file and store it somewhere on your computer.

#### Global

[](#global)

You can run these commands to easily access `symfony-upgrade-fixer` from anywhere on your system:

```
$ sudo wget https://github.com/umpirsky/Symfony-Upgrade-Fixer/releases/download/v0.1.6/symfony-upgrade-fixer.phar -O /usr/local/bin/symfony-upgrade-fixer
$ sudo chmod a+x /usr/local/bin/symfony-upgrade-fixer
```

Then, just run `symfony-upgrade-fixer`.

### Composer

[](#composer)

#### Local

[](#local-1)

```
$ composer require umpirsky/symfony-upgrade-fixer
```

#### Global

[](#global-1)

```
$ composer global require umpirsky/symfony-upgrade-fixer
```

Make sure you have `~/.composer/vendor/bin` in your `PATH` and you're good to go:

```
$ export PATH="$PATH:$HOME/.composer/vendor/bin"
```

Don't forget to add this line in your `.bashrc` file if you want to keep this change after reboot.

Usage
-----

[](#usage)

The `fix` command tries to fix as much upgrade issues as possible on a given file or directory:

```
$ symfony-upgrade-fixer fix /path/to/dir
$ symfony-upgrade-fixer fix /path/to/file
```

The `--dry-run` option displays the files that need to be fixed but without actually modifying them:

```
$ symfony-upgrade-fixer fix /path/to/code --dry-run
```

The `--no-use-reorder` option prevents the fixer from re-ordering USE statements:

```
$ symfony-upgrade-fixer fix /path/to/code --no-use-reorder
```

The `--fixers` option allows to specify which fixers should be used:

```
$ symfony-upgrade-fixer fix /path/to/code --fixers=get_request,form_events,property_access
```

Fixers available
----------------

[](#fixers-available)

NameDescriptionform\_configure\_optionsThe method AbstractType::setDefaultOptions(OptionsResolverInterface $resolver) have been renamed to AbstractType::configureOptions(OptionsResolver $resolver).form\_eventsThe events PRE\_BIND, BIND and POST\_BIND were renamed to PRE\_SUBMIT, SUBMIT and POST\_SUBMIT.form\_getname\_to\_getblockprefixThe method FormTypeInterface::getName() was deprecated, you should now implement FormTypeInterface::getBlockPrefix() instead.form\_option\_namesOptions precision and virtual was renamed to scale and inherit\_data.form\_parent\_typeReturning type instances from FormTypeInterface::getParent() is deprecated, return the fully-qualified class name of the parent type class instead.form\_type\_namesInstead of referencing types by name, you should reference them by their fully-qualified class name (FQCN) instead.form\_extension\_get\_extended\_typeInstead of referencing extended types by name, you should reference them by their fully-qualified class name (FQCN) instead.get\_requestThe getRequest method of the base controller class was removed, request object is injected in the action method instead.inherit\_data\_aware\_iteratorThe class VirtualFormAwareIterator was renamed to InheritDataAwareIterator.progress\_barProgressHelper has been removed in favor of ProgressBar.property\_accessRenamed PropertyAccess::getPropertyAccessor to PropertyAccess::createPropertyAccessor.Real Life Examples
------------------

[](#real-life-examples)

It is tested against few cool Symfony projects:

- [Sylius](https://github.com/Sylius/Sylius/pull/3571)
- [OroPlatform](https://github.com/orocrm/platform/pull/345)
- [Akeneo PIM](https://github.com/akeneo/pim-community-dev/pull/3571)

Contribute
----------

[](#contribute)

The tool is based on PHP Coding Standards Fixer and the [contributing process](https://github.com/FriendsOfPhp/php-cs-fixer/blob/master/CONTRIBUTING.md) is very similar. I see no sense in re-doing it so far.

If you want to contribute to README, please don't edit `README.md` directly - it is autogenerated. Edit `README.tpl` instead and run:

```
$ symfony-upgrade-fixer readme > README.md
```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity51

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70.5% 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 ~79 days

Recently: every ~114 days

Total

7

Last Release

3409d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/379f6555cc98722ab303535ce5811af267fd006fc3e141bd0cea546430160c74?d=identicon)[umpirsky](/maintainers/umpirsky)

---

Top Contributors

[![umpirsky](https://avatars.githubusercontent.com/u/208957?v=4)](https://github.com/umpirsky "umpirsky (55 commits)")[![lyrixx](https://avatars.githubusercontent.com/u/408368?v=4)](https://github.com/lyrixx "lyrixx (8 commits)")[![akovalyov](https://avatars.githubusercontent.com/u/2339101?v=4)](https://github.com/akovalyov "akovalyov (4 commits)")[![kristijanhusak](https://avatars.githubusercontent.com/u/1782860?v=4)](https://github.com/kristijanhusak "kristijanhusak (3 commits)")[![aivus](https://avatars.githubusercontent.com/u/1021703?v=4)](https://github.com/aivus "aivus (3 commits)")[![tobias-93](https://avatars.githubusercontent.com/u/3901745?v=4)](https://github.com/tobias-93 "tobias-93 (2 commits)")[![lolautruche](https://avatars.githubusercontent.com/u/313528?v=4)](https://github.com/lolautruche "lolautruche (1 commits)")[![aalgogiver](https://avatars.githubusercontent.com/u/11629050?v=4)](https://github.com/aalgogiver "aalgogiver (1 commits)")[![johnnypeck](https://avatars.githubusercontent.com/u/254875?v=4)](https://github.com/johnnypeck "johnnypeck (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/umpirsky-symfony-upgrade-fixer/health.svg)

```
[![Health](https://phpackages.com/badges/umpirsky-symfony-upgrade-fixer/health.svg)](https://phpackages.com/packages/umpirsky-symfony-upgrade-fixer)
```

###  Alternatives

[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20280.7k20](/packages/shopsys-coding-standards)

PHPackages © 2026

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