Install or enable phps intl extension mac
How can I install intl PHP extension in PHP 7.1.7, which is delivered with osx high sierra? Show
asked Oct 9, 2017 at 18:38
So I had the exact same issue. As noted by other folks commenting here, High Sierra comes with PHP 7.1 installed and this PHP version has intl compiled with it In my case, I followed part of Neodork comment's in the following Valet+ issue: "Install" PHP 7.1 (so it comes from brew itself, not the one installed by High Sierra)
Upgrade it to latest version
Symlinks for references in Cellar:
Change PHP path in my bash profile
Reload your bash profile (you can close the terminal and open it again)
Check for Intl
Note: If you come across with warnings like:
Then you have to disable the previous intl:
Hope it helps! answered Jul 10, 2018 at 21:20
7 After the integration from To enable the installed version, you need to do this: After You need to link the installed PHP version by Then you need to OPEN A NEW TERMINAL to make it effective. make sure it's Then check if the intl extension is enabled, It works for me. answered Jul 4, 2018 at 20:14
jallen0927jallen0927 3504 silver badges14 bronze badges 1 open a terminal then type:
you should be able to see php71-intl, then run
then restart apache
then type:
you should be able to see something like this:
Enjoy! answered Dec 25, 2017 at 12:11
7 I'm running the brew 1.6.2, on OS High Sierra. The intl extension is not available in brew packages so far. The @Mondy solution worked fine for me. After run the
The packages will be available in /usr/local/php5 or /usr/local/php5-7.0.27-20180201-135220. So in your /usr/local/etc/php/7.0/php.ini you can place the following lines to enable the intl extension:
In my case I prefered to create a file 'ext-intl.ini' in /usr/local/etc/php/7.0/conf.d/, just for a better organization. answered Apr 26, 2018 at 8:17
LipdkLipdk 711 silver badge2 bronze badges 4 In addition to what L. Grolleau says (run
answered Nov 17, 2017 at 21:23
I find a solution.
Then I copied intl.so from the installation to my extension directory, which is defined into my php.ini. answered Oct 9, 2017 at 19:40
MondyMondy 1,8373 gold badges15 silver badges29 bronze badges 3 I have managed to work this out. First uninstall any php packages you have completely with brew, then run the Now install with To confirm it is working run
webmaster777 1,3452 gold badges12 silver badges16 bronze badges answered Apr 7, 2018 at 8:01
1 Remove the following file with
Worked for me, thanks to homebrew-core Issue answered Sep 11, 2018 at 23:51
I installed php7.2 with brew and linked with that version on Mac, but cannot see even the version number 7.2 in
in that line you have to override with your new php72 path: in my case it was
And restart apache, it works fine. answered Jun 27, 2020 at 10:52
CristianRCristianR 3053 silver badges5 bronze badges try this
answered Feb 2, 2018 at 21:31
MTMMTM 1031 silver badge8 bronze badges How do I enable Intl extension on Mac?Re: Install php_extension intl into Mac OS X Server. (1) Use "port" to install php5-intl % sudo port install php5-intl.. (2) Copy intl.so into active php extensions directory % sudo cp /opt/local/lib/php/extensions/no-debug-non-zts-20090626/intl.so /usr/lib/php/extensions/no-debug-non-zts-20090626.. How do I install or enable PHP's intl extension?How to install Intl extension in Xampp ?. Open [xampp_folder_path]/php/php. ini to edit.. search for – extension=php_intl.dll ;extension=php_intl.dll. and uncomment the line by removing semicolon. extension=php_intl.dll.. save the file and restart Apache.. What is extension Intl?The Internationalization extension (Intl) is a wrapper for the ICU library, a set of C/C++ and Java libraries that provide Unicode and Globalization support for software applications. It enables PHP programmers to perform UCA-conformant collation and date/time/number/currency formatting in their scripts.
|