Diễn đàn Nhật Bản - diendannhatban.info

NHÀ PHÁT TRIỂN - DEVELOPERS - 技術開発 => HỆ ĐIỀU HÀNH => MacOS => Tác giả chủ đề:: admin trong Thứ hai, 15/06/2015, 07:46:43 pm

Tiêu đề: Cài đặt thư viện ICU và PHP Intl extension trên Mac
Gửi bởi: admin trong Thứ hai, 15/06/2015, 07:46:43 pm
Installing the ICU libraries and the PHP Intl extension on a Mac

What is “Intl“? Per the PHP docs:
Internationalization extension (further is referred as Intl) is a wrapper for » ICU library, enabling PHP programmers to perform » UCA-conformant collation and date/time/number/currency formatting in their scripts.

Alright, so what is ICU?
ICU is a mature, widely used set of C/C++ and Java libraries providing Unicode and Globalization support for software applications. ICU is widely portable and gives applications the same results on all platforms and between C/C++ and Java software.

Installing PEAR/PECL
PEAR and PECL are repositories for PHP extensions. You need those installed in order to install Intl with PECL.

Source:
http://freddyduarte.com/2013/08/14/installing-the-icu-libraries-and-the-php-intl-extension-on-a-mac/
http://stackoverflow.com/questions/9322742/php-autoconf-errors-on-mac-os-x-10-7-3-when-trying-to-install-pecl-extensions
http://darraghenright.tumblr.com/post/22027208929/installing-intl-package-on-osx-lion