symfony/polyfill-intl-normalizer's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
The Symfony/polyfill-intl-normalizer provides a fallback implementation for the Normalizer class and related functions provided by the Intl PHP extension. This functionality is essential for internationalization and globalization in web applications as it helps to convert text into a normalized form, which is an important step for many Unicode algorithms.
To use the Symfony/polyfill-intl-normalizer, you can start by installing it through Composer by running this command:
composer require symfony/polyfill-intl-normalizer
After that, the Normalizer class and functions would be available globally in your PHP application, and you can utilize them the same way you’d work with the original Normalizer class and functions from the Intl extension. Please refer to the PHP official documentation for Normalizer class to understand how to use its methods.
For example, you can normalize a string to the Canonical Decomposition form as follows:
$string = 'Your string here'; $normalizedString = \Normalizer::normalize($string, \Normalizer::FORM_D);
The documentation for Symfony/polyfill-intl-normalizer can be found in the README file of the main Symfony polyfill project on Github. It provides a general overview and usage information about all polyfills provided by Symfony including the intl-normalizer. For more specific usage examples and details about the functionality, you can refer to the PHP official documentation for the Intl extension and the Normalizer class.