How to resolve the PHP intl issue in Krayin?

When you take a look at to put in Krayin and race the command “composer create-project krayin/laravel-CRM” or when putting in the Krayin you may reach this issue “Class ‘NumberFormatter’ not found”. the explanation behind this error is PHP intl extension isn't enabled that’s why this error can occur. Here we'll consult “How to mend PHP intl issue in Krayin?

Source: https://www.dotkernel.com/php-troubleshooting/where-is-the-intl-php-extension-problem-solved/


What Is Intl?

Internationalization(Intl) could be a styling method for a product(application) to create a positive that the appliance accepts many-sided languages while not a modification to the ASCII text file of the appliance.

Maybe you put in an associate unbundled PHP version, then intl extension isn't on the market there. however, if you've got the bundled PHP version, the extension may well be there but not allowed.

Note:- For this answer, you've got root access. If you don’t have root access raise your service supplier to install/enable the PHP Intl extension.

Source: https://stackoverflow.com/questions/33869521/how-can-i-enable-php-extension-intl

Solution For Linux Server

Make Sure The Php_intl.So File Exists Within Your PHP Extensions Directory, See The Extensions Directory By:

  • Using phpinfo()

  • Running this command: php -r "echo ini_get('extension_dir');"

  • Note: Both options get the extension_dir right from the PHP runtime configuration.

If The File Exists:

  • Search for the config file (php.ini, usually /etc/php.ini) and open it.

  • Make sure the line “extension=php_intl.so” is existing and not commented.

  • Restart the webserver (usually sudo service https restart).

  • Check if the extension is enabled using phpinfo()

If The File Doesn’t Exist:

  • Check your PHP version by running the “php -v” command.

  • 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.

Solution For Windows Server:

Make Sure The Php_intl.Dll File Exists Within Your PHP Extensions Directory:

  • For separately installed PHP: C:\path\to\php\ext\

  • For xampp: C:\path\to\xampp\php\ext

  • Note:- your drive letter might be different.

If The File Exists:

  • Search for the config file php.ini, usually in the same folder as the php executable) and open it.

  • Make sure the line “extension=php_intl.dll” is existing and not commented.

  • Restart the web server (usually apache).

  • Check if the extension is enabled using phpinfo()

If The File Doesn’t Exist:

  • Check your php version by running the “php -v” command.

  • Download the PHP version that corresponds to yours from the PHP Downloads Page (TS/NTS, x86/x64)

  • To find thread safety for php, run: php -i | findstr “Thread” , source & more info.

  • Search for the php_intl.dll file in the ext folder in that version and copy it in your php\ext folder.

  • Repeat the steps for the case in which the file exists.

That’s all concerning “How to mend PHP intl issue in Krayin CRM?”. Hope it'll be helpful for you.

If you've got any problems be at liberty to boost a price tag at https://webkul.uvdesk.com/en/ or email us at support@krayincrm.com