PHPackages                             bakame/intl-formatter - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. bakame/intl-formatter

ActiveLibrary[Localization &amp; i18n](/categories/localization)

bakame/intl-formatter
=====================

Classes to help internalization in your PHP application

0.3.0(3y ago)0124[1 PRs](https://github.com/bakame-php/intl-formatter/pulls)1MITPHPPHP ^7.4 || ^8.0

Since Jun 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/bakame-php/intl-formatter)[ Packagist](https://packagist.org/packages/bakame/intl-formatter)[ GitHub Sponsors](https://github.com/sponsors/nyamsprod)[ RSS](/packages/bakame-intl-formatter/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (3)Dependencies (7)Versions (5)Used By (1)

Intl Formatter
==============

[](#intl-formatter)

[![Author](https://camo.githubusercontent.com/8227017ba73e8c0c93fa2c9c653cf702644a5af5d422e7f612b31d45efc180a1/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d406e79616d7370726f642d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/nyamsprod)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build](https://github.com/bakame-php/intl-formatter/workflows/build/badge.svg)](https://github.com/bakame-php/intl-formatter/actions?query=workflow%3A%22build%22)[![Latest Version](https://camo.githubusercontent.com/c4ea3f23ff9bb6082c9dbb3affb64889054a71ce867aa7e9ccf520c185114446/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f62616b616d652d7068702f696e746c2d666f726d61747465722e7376673f7374796c653d666c61742d737175617265)](https://github.com/bakame-php/intl-formatter/releases)[![Total Downloads](https://camo.githubusercontent.com/375b9455ea62e903fc768c1b4e024a59f533cc82ab333aa6629bf7a93292ca2d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62616b616d652f696e746c2d666f726d61747465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bakame/intl-formatter)[![Sponsor development of this project](https://camo.githubusercontent.com/2e662697b46a37233abdd7e45373397aab0bd5206336533151cdf42455d81048/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73706f6e736f72253230746869732532307061636b6167652d2545322539442541342d6666363962342e7376673f7374796c653d666c61742d737175617265)](https://github.com/sponsors/nyamsprod)

The package can be used in any PHP application to quickly handle internationalization by providing classes to format locale, language, timezones, currency and dates.

System Requirements
-------------------

[](#system-requirements)

- PHP8.0+
- Symfony Intl component

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

[](#installation)

Use composer:

```
composer require bakame/intl-formatter

```

Documentation
-------------

[](#documentation)

Once installed the package provides a Formatter class to help in internationalization using the Intl extension and/or Symfony Intl package.

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

[](#contributing)

Contributions are welcome and will be fully credited. Please see [CONTRIBUTING](.github/CONTRIBUTING.md) and [CODE OF CONDUCT](.github/CODE_OF_CONDUCT.md) for details.

Testing
-------

[](#testing)

The library:

- has a [PHPUnit](https://phpunit.de) test suite
- has a coding style compliance test suite using [PHP CS Fixer](https://cs.sensiolabs.org/).
- has a code analysis compliance test suite using [PHPStan](https://github.com/phpstan/phpstan).

To run the tests, run the following command from the project folder.

```
composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [ignace nyamagana butera](https://github.com/nyamsprod)
- [All Contributors](https://github.com/bakame-php/intl-formatter/contributors)

Attribution
-----------

[](#attribution)

The package `Formatter` class and its API are heavily inspired by previous works done by [Fabien Potencier](https://github.com/fabpot) on [Twig Intl Extension](https://github.com/twigphp/intl-extra).

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

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

Total

3

Last Release

1427d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/51073?v=4)[Ignace Nyamagana Butera](/maintainers/nyamsprod)[@nyamsprod](https://github.com/nyamsprod)

---

Top Contributors

[![nyamsprod](https://avatars.githubusercontent.com/u/51073?v=4)](https://github.com/nyamsprod "nyamsprod (29 commits)")

---

Tags

format-dateformat-numberformattericuinternationalizationintlpackagephpformatterintldatenumberinternalization

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/bakame-intl-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/bakame-intl-formatter/health.svg)](https://phpackages.com/packages/bakame-intl-formatter)
```

###  Alternatives

[sonata-project/intl-bundle

Symfony SonataIntlBundle

2159.0M48](/packages/sonata-project-intl-bundle)[moment/moment

Parse, validate, manipulate, and display dates in JavaScript.

48.1k2.1M37](/packages/moment-moment)[symfony/intl

Provides access to the localization data of the ICU library

2.6k199.8M1.1k](/packages/symfony-intl)[timrwood/moment

Parse, validate, manipulate, and display dates in JavaScript.

48.0k17.2k](/packages/timrwood-moment)[jenssegers/date

A date library to help you work with dates in different languages

1.8k11.2M79](/packages/jenssegers-date)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)

PHPackages © 2026

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