Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How to install php intl for php 5?


Asked by Dorothy Lyons on Dec 09, 2021 PHP



For PHP 5 install the php-intl package using your package manager – package managers and commands Most common: apt-get install php-intl (for ubuntu-based linux) or yum install php-intl (for CentOS) For PHP 7, install the php7.x-intl (depending on your php version) Repeat the steps for the case in which the file exists.
And,
1 Check your php version by running the “php -v” command 2 For PHP 5 install the php-intl package using your package manager – package managers and commands Most common: apt-get install php-intl (for ubuntu-based linux) or yum install php-intl (for CentOS) 3 For PHP 7, install the php7.x-intl (depending on your php version) More items...
Just so, This extension may be installed using the bundled version as of PHP 5.3.0, or as a PECL extension as of PHP 5.2.0. In other words, there are two methods to install the intl extension.
Likewise,
Make sure the php_intl.so file exists within your php extensions directory, find the extensions directory by: using phpinfo() running this command: php -r "echo ini_get('extension_dir');". For projects hosted on a shared hosting platform you must ask your hosting provider to install/enable the PHP Intl extension.
Also,
From php 5.5 php-intl it's alredy included in PHP binary, it just have to be enabled during the configuration of the build. First, locate your old build folder. I Hope you didn't deleted that, in my case was: now you have to re-configure the build including the "--enable-intl" option.