Install intl PHP extension for MAMP / Symfony2

Published in: 

Many Bothans died to bring us this information (or at least my patience died a small death). Stashing this here for next time and/or to help someone else hopefully.

First do:

export PATH=/Applications/MAMP/bin/php/php5.3.14/bin/:$PATH
brew update
brew install icu4c

Next download PHP source that matches your MAMP version.

Then:

cd /Applications/MAMP/bin/php/php5.3.14
mkdir include
mv ~/Downloads/php-5.3.14 include/php
cd include/php
sudo ./configure
pecl install intl

Finally, add "extension=intl.so" to your php.ini and restart Apache

20 March, 2010