To enable the intl extension in XAMPP, follow these steps:
-
Open the
php.inifile located in thephpfolder of your XAMPP installation. -
Search for the following line:
;extension=php_intl.dll -
Remove the semicolon (;) at the beginning of the line to uncomment it.
-
Save the
php.inifile and restart your Apache server. -
To verify that the
intlextension is enabled, create a new PHP file with the following code:<?php phpinfo(); ?> -
Open the PHP file in your web browser and search for "intl" in the output. If you see a section for "intl", then the extension is enabled.
Note: If you don't see the "intl" section in the output, make sure that you have the correct version of the php_intl.dll file for your PHP version. You can download the file from the official PHP website and place it in the ext folder of your XAMPP installation.