More detail hereīefore you begin make sure you have installed Xcode. If not you can change it by PATH='/Applications/XAMPP/xamppfiles/bin:$'. it should be /Applications/XAMPP/xamppfiles/bin/php. Overall idea is to build the intl-extension from PHP source code on your own.
(using php71-intl ).īrew tap kyslik/homebrew-php & brew install kyslik/php/php71-intlįinally I got it to work using the following steps. Some solutions used brew packages which are now deprecated/deleted/moved. Even tried to build the intl-extension using macports instead of pecl. (using pecl) I kept getting this error: “fatal error: ‘ext/standard/php_smart_str.h’ file not found”. Mainly because they were meant for PHP5.6 and not for PHP7. I had almost given up, most of the solutions didn’t work for me. So I was hoping to find a solution to get it to work for XAMPP.įor XAMPP, installing intl extension was pain in the butt, firstly because this extension is not provided by XAMPP out of the box. And switching between built-in Apache and XAMPP or MAMP to run my projects was too confusing and time consuming. Now I have couple of projects already running on my mac with XAMPP. (it should be the one which you just installed: )