bakame/intl-formatter
Classes to help internalization in your PHP application
Maintainers
Fund package maintenance!
Requires
- php: ^7.4 || ^8.0
- ext-intl: *
- ext-json: *
- symfony/intl: ^5.0||^6.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.8
- phpstan/phpstan: ^1.7
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.1
- phpstan/phpstan-strict-rules: ^1.2
- phpunit/phpunit: ^9.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT cd2ad06d17c938b868875b6fdd4a6c040a9a1ffb
- Ignace Nyamagana Butera <nyamsprod.woop@gmail.com>
This package is auto-updated.
Last update: 2026-06-23 23:17:51 UTC
README
👁 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
Installation
Use composer:
composer require bakame/intl-formatter
Documentation
Once installed the package provides a Formatter class to help in internationalization using the Intl extension and/or Symfony Intl package.
Contributing
Contributions are welcome and will be fully credited. Please see CONTRIBUTING and CODE OF CONDUCT for details.
Testing
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
Security
If you discover any security related issues, please email nyamsprod@gmail.com instead of using the issue tracker.
Credits
Attribution
The package Formatter class and its API are heavily inspired by previous works done by Fabien Potencier on Twig Intl Extension.
License
The MIT License (MIT). Please see License File for more information.
