Classes to help internalization in your PHP application

0.3.0 2022-06-12 20:38 UTC

This package is auto-updated.

Last update: 2024-03-23 18:34:27 UTC


Author Software License Build Latest Version Total Downloads Sponsor development of this project

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

  • PHP8.0+
  • Symfony Intl component


Use composer:

composer require bakame/intl-formatter


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


Contributions are welcome and will be fully credited. Please see CONTRIBUTING and CODE OF CONDUCT for details.


The library:

  • has a PHPUnit test suite
  • has a coding style compliance test suite using PHP CS Fixer.
  • has a code analysis compliance test suite using PHPStan.

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

composer test


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



The package Formatter class and its API are heavily inspired by previous works done by Fabien Potencier on Twig Intl Extension.


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