The INTL extension may be included in PHP 5.4, PHP 5.3 is still the main PHP version installed on many production servers. Here is how you install it on a Mac.

Get ICU from

http://site.icu-project.org/download

At the time of this writing, I downloaded the

icu4c-49_1_2-src.tgz package on

http://site.icu-project.org/download/49

Unzip the file. Open a new bash window and go to the /source folder of the unzipped file.

In Terminal, type :

./runConfigureICU MacOSX

make

sudo make install

sudo pecl install intl

You now have the INTL extension on your hard drive, but you have to copy it in your PHP extensions folder. Since I&#8217;m using MAMP, i&#8217;m copying it in the MAMP extension folder (which is not the same folder as the CLI PHP extension folder). In Terminal, type :