Install intl PHP extension OSX High Sierra

前端 未结 12 1047
予麋鹿
予麋鹿 2020-12-01 04:39

How can I install intl PHP extension in PHP 7.1.7, which is delivered with osx high sierra?

12条回答
  •  青春惊慌失措
    2020-12-01 05:18

    open a terminal then type:

    brew search intl
    

    you should be able to see php71-intl, then run

    brew install homebrew/php/php71-intl
    

    then restart apache

    sudo apachectl restart
    

    then type:

    php -i | grep intl
    

    you should be able to see something like this:

    Additional .ini files parsed => /usr/local/etc/php/7.1/conf.d/ext-intl.ini
    intl
    intl.default_locale => no value => no value
    intl.error_level => 0 => 0
    intl.use_exceptions => 0 => 0
    

    Enjoy!

提交回复
热议问题