PHPackages                             composer-fallback/intl.symfony-polyfill - 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. composer-fallback/intl.symfony-polyfill

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

composer-fallback/intl.symfony-polyfill
=======================================

Satisfy "intl" with packages provided by user, or fallback to "symfony-polyfill".

1.1(5y ago)04MIT

Since Oct 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/composer-fallback/intl.symfony-polyfill)[ Packagist](https://packagist.org/packages/composer-fallback/intl.symfony-polyfill)[ RSS](/packages/composer-fallback-intlsymfony-polyfill/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

Fallback for `intl` using `symfony-polyfill`
============================================

[](#fallback-for-intl-using-symfony-polyfill)

Provides a metapackage for library needing `intl`that fallback to a default implementation when user does not meet the initial requirements.

Usage
-----

[](#usage)

```
composer require "composer-fallback/intl.symfony-polyfill:*"
```

Composer will, by preference:

- check if user has `ext-intl`
- otherwise, fallbacks to `symfony/intl`

How does it works
-----------------

[](#how-does-it-works)

This package contains 2 versions:

1. The highest [1.1](https://github.com/composer-fallback/intl.symfony-polyfill/blob/1.1/composer.json) needs `ext-intl`.
2. The lowest [1.0](https://github.com/composer-fallback/intl.symfony-polyfill/blob/1.0/composer.json) triggers install of `symfony/intl`.

Composer will choose this highest version when user has the extension ext-intl. Otherwise, composer will choose the lowest version and in that case will download the following packages: `symfony/intl`.

What problem does it solve?
---------------------------

[](#what-problem-does-it-solve)

You are maintaining a library that need an implementation of `intl`, but you don't want requiring a specific implementation.

ie. you need function defined in `intl`, but polyfill exists and would be enough.

When end users requires you library with the following code

```
{
    "name": "end-user/app",
    "require": {
      "acme/lib": "^1.0"
    }
}
```

They probably ends with such error

```
composer up

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for acme/lib ^1.0 -> satisfiable by acme/lib[1.0].
    - acme/lib 1.0 requires ext-intl * -> no matching package found.
```

You can ask user to install a random package, it works, but the DX is very bad, and confusing at first.

By using `composer-fallback/intl.symfony-polyfill`, users will provide the native implementation or fallback to your default choice

### Example of user that meet the preferred requirements

[](#example-of-user-that-meet-the-preferred-requirements)

```
{
    "name": "end-user/app",
    "require": {
        "acme/lib": "^1.0",
        "third-party/provide-implementation": "^1.0"
    }
}
```

```
composer up
...
Package operations: 2 installs, 0 updates, 0 removals
  - Installing acme/lib (1.0)
  - Installing composer-fallback/intl.symfony-polyfill (1.1)
```

### Example of user that fallback to your recommendations

[](#example-of-user-that-fallback-to-your-recommendations)

```
{
    "name": "end-user/app",
    "require": {
        "acme/lib": "^1.0"
    }
}
```

```
composer up
...
Package operations: 3 installs, 0 updates, 0 removals
  - Installing acme/lib (1.0)
  - Installing composer-fallback/intl.symfony-polyfill (1.0)
  - Installing symfony/intl (1.0)
```

Contributing
------------

[](#contributing)

This repository is automatically generated. If you want contributing and submitting an issue or a Pull Request, please use [composer-fallback/generator](https://github.com/composer-fallback/generator).

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

2

Last Release

2101d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d3f32527fbf2e4214a29d86a441db4d130535437cf1911a6b0e6ef13db1c84aa?d=identicon)[jderusse](/maintainers/jderusse)

---

Top Contributors

[![jderusse](https://avatars.githubusercontent.com/u/578547?v=4)](https://github.com/jderusse "jderusse (3 commits)")

---

Tags

composerintlfallbackdefault

### Embed Badge

![Health badge](/badges/composer-fallback-intlsymfony-polyfill/health.svg)

```
[![Health](https://phpackages.com/badges/composer-fallback-intlsymfony-polyfill/health.svg)](https://phpackages.com/packages/composer-fallback-intlsymfony-polyfill)
```

###  Alternatives

[symfony/polyfill-intl-idn

Symfony polyfill for intl's idn\_to\_ascii and idn\_to\_utf8 functions

3.4k823.1M147](/packages/symfony-polyfill-intl-idn)[symfony/polyfill-intl-normalizer

Symfony polyfill for intl's Normalizer class and related functions

2.1k885.3M65](/packages/symfony-polyfill-intl-normalizer)[symfony/polyfill-intl-grapheme

Symfony polyfill for intl's grapheme\_\* functions

1.7k754.7M53](/packages/symfony-polyfill-intl-grapheme)[symfony/polyfill-intl-icu

Symfony polyfill for intl's ICU-related data and classes

2.6k266.6M152](/packages/symfony-polyfill-intl-icu)[jean85/pretty-package-versions

A library to get pretty versions strings of installed dependencies

1.3k315.9M84](/packages/jean85-pretty-package-versions)[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k41.5M2.9k](/packages/ergebnis-composer-normalize)

PHPackages © 2026

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