PHP 8.4.0 RC4 available for testing

安装

--enable-intl will enable the extension while compiling PHP.

If your ICU is installed to a non-standard directory then you might want to specify its location in LD_LIBRARY_PATH environment variable so that dynamic linker can find it:

$ export LD_LIBRARY_PATH=/opt/icu/lib

Otherwise, if PHP and ICU are installed to their default locations, then the additional options to configure are not needed.

添加备注

用户贡献的备注 6 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
1
Saurabh
2 years ago
For amazon nginx server (CentOs), try the following:

sudo yum install libicu-devel
sudo yum install php-intl
up
0
daniel at danielphenry dot com
9 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
0
jltupac at hotmail dot com
11 years ago
Ubuntu:
sudo apt-get install php5-intl
up
-1
Anonymous
1 year ago
ArchLinux:

pacman -S icu php-intl
up
-2
lee dot wp14 at gmail dot com
3 years ago
For ubuntu: apt install php-intl
To Top