PHPackages                             l91/symfony-intl-fix - 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. l91/symfony-intl-fix

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

l91/symfony-intl-fix
====================

Provides the symfony/intl fix for new php version also for symfony 2.8

1.0.0(7y ago)1992MITPHPPHP ^5.5 || ^7.0

Since Apr 26Pushed 7y ago6 watchersCompare

[ Source](https://github.com/sulu/symfony-intl-fix)[ Packagist](https://packagist.org/packages/l91/symfony-intl-fix)[ RSS](/packages/l91-symfony-intl-fix/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Fix symfony/intl for newer PHP Versions
=======================================

[](#fix-symfonyintl-for-newer-php-versions)

```
composer require sulu/symfony-intl-fix
```

To avoid problems you should also exclude the default Locale class from the classmap in your `composer.json`:

```
{
    "autoload": {
        "exclude-from-classmap": [
             "vendor/symfony/intl/Locale.php",
             "vendor/symfony/symfony/src/Symfony/Component/Intl/Locale.php"
        ]
    }
}
```

**Affected PHP Versions:**

- `^7.3.4`
- `^7.2.17`
- `^7.1.28`

If you use one of the above PHP Version and an older Symfony Intl version than `^3.4.24` or `^4.2.7` symfony/intl will end up in an infinite loop.

This package will overwrite the Symfony [Locale](https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Intl/Locale.php) to avoid this infinite loop. Projects using Symfony 3 or 4 should just update there symfony package. This fix is mainly provided for Symfony 2 projects.

**What was changed to fix the issue?**

The change in `Locale.php` is really simple:

```
-            return locale_compose($localeSubTags);
+            $fallback = locale_compose($localeSubTags);
+
+            return false !== $fallback ? $fallback : null;
```

See [original commit](https://github.com/symfony/intl/commit/d2ac83703951bc3206e9ea3f6114b355de14e3ce#diff-272fb631cccddf1d11988bec3fb7aa15).

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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

Unknown

Total

1

Last Release

2621d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1698337?v=4)[Alexander Schranz](/maintainers/alexander-schranz)[@alexander-schranz](https://github.com/alexander-schranz)

---

Top Contributors

[![alexander-schranz](https://avatars.githubusercontent.com/u/1698337?v=4)](https://github.com/alexander-schranz "alexander-schranz (9 commits)")[![bobdenotter](https://avatars.githubusercontent.com/u/1833361?v=4)](https://github.com/bobdenotter "bobdenotter (1 commits)")

---

Tags

fixintllegacysymfony

### Embed Badge

![Health badge](/badges/l91-symfony-intl-fix/health.svg)

```
[![Health](https://phpackages.com/badges/l91-symfony-intl-fix/health.svg)](https://phpackages.com/packages/l91-symfony-intl-fix)
```

PHPackages © 2026

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