Chapter 3: Localization Demystified: Php-Intl for Everyone
by Younes Rafie
Most applications perform locale aware operations like working with texts, dates, timezones, etc. The PHP Intl extension provides a good API for accessing the widely known ICU library's functions.
Installation
The extension is installed by default on PHP 5.3 and above. You can look for it by running the following command:
php -m | grep 'intl'
If the extension is not present, you can install it manually by following the installation guide. If you're using Ubuntu, you can directly run the following commands.
sudo apt-get update
sudo apt-get install php5-intl
If you're using PHP7 on your machine, you need to add the (ppa:ondrej/php
) PPA, update your system and install ...
Get Better PHP Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.