CakeFest 2024: The Official CakePHP Conference

インストール手順

PHP のコンパイル時に --enable-intl を指定すると、 この拡張モジュールは有効になります。

ICU のインストール場所が標準と異なる場合は、その場所を環境変数 LD_LIBRARY_PATH に指定しましょう。 そうすればリンカがライブラリを見つけてくれるようになります。

$ export LD_LIBRARY_PATH=/opt/icu/lib

PHP と ICU をデフォルトの場所にインストールしている場合は、 configure 時の追加のオプションは不要です。

add a note

User Contributed Notes 8 notes

up
2
Vichingo455
1 year ago
On XAMPP (Windows) open the php.ini by opening the control panel, selecting config on apache section and selecting PHP

Then add extension=php_intl and restart Apache
up
2
daniel at danielphenry dot com
8 years ago
To install on windows uncommenting the dll in php.ini is not enough you also need to include several other libraries in your system path (not user path). Found these details here: http://stackoverflow.com/a/6086991/819883
up
1
lee dot wp14 at gmail dot com
3 years ago
For ubuntu: apt install php-intl
up
1
jltupac at hotmail dot com
10 years ago
Ubuntu:
sudo apt-get install php5-intl
up
0
Anonymous
1 year ago
ArchLinux:

pacman -S icu php-intl
up
-3
Saurabh
1 year ago
For amazon nginx server (CentOs), try the following:

sudo yum install libicu-devel
sudo yum install php-intl
up
-4
domagoj dot starcevic1 at gmail dot com
1 year ago
On Windows, with Apache server, it might not be enough to uncomment the extension in the php.ini file. You also need to copy icu****.dll files (about five of them) from PHP folder to Apache /bin folder.
up
-6
jonwebb at tecbiz dot eu
9 years ago
On windows servers, open your php.ini (which should be in Program Files/PHP), and simply uncomment the extension.
extension=php_intl.dll
Restart IIS Webserver - done.
To Top