On window, just enable php_intl.dll but on MAC, it may be more difficult than i think :)
1. Check which php path
user$ which php
2. If you are using xampp on mac it should be
/Applications/XAMPP/xamppfiles/bin/php
but if its
/usr/bin/php
you need to change your OSx php
user$ PATH="/Applications/XAMPP/xamppfiles/bin:${PATH}"
user$ php -v
PHP 5.6.24 (cli) (built: Aug 26 2016 05:57:56)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
user$ which php
/Applications/XAMPP/xamppfiles/bin/php
3. Install brew
user$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
4. Install icu4c
user$: brew install icu4c
5. Install autoconf
user$: brew install icu4c
5. Install autoconf
user$ brew install autoconf
6. Install Intl via PECL
user$ cd <your xampp path>/bin
user$ sudo ./pecl update-channels
user$ sudo ./pecl install intl
7. You can check if Intl was installed successfully
user$ cd <your xampp path>/bin
user$ ./php -m | grep intl
6. Install Intl via PECL
user$ cd <your xampp path>/bin
user$ sudo ./pecl update-channels
user$ sudo ./pecl install intl
7. You can check if Intl was installed successfully
user$ cd <your xampp path>/bin
user$ ./php -m | grep intl
# it return 'intl'