Questions tagged [intl]

Intl is a PHP extension which give ability to use Unicode, software internationalization (I18N) and globalization (G11N) from the ICU library.

Intl is the short description for Internationalization.

It's a PHP extension which create a wrapper for the library.

There are several modules available:

More information can be found on the PHP.net documentation.

434 questions
0
votes
1 answer

Convert Spanish date to timestamp with Intl (PHP)

I need to convert date written in the natural language to timestamp or any other standard date format. Dates are in four languages: English, German, French, and Spanish. I can convert all except Spanish date with Intl extension. Example of date in…
Serhii Popov
  • 3,326
  • 2
  • 25
  • 36
0
votes
2 answers

php - Fatal error: Uncaught Error: Class 'IntlDateFormatter' not found in C:\Users\denni\PhpstormProjects\ACNOP OOP\Main.php on line 69

I'm trying to use the IntlDateFormatter class to format date and time strings to local (Dutch) time formats. I use the following code that I copy-pasted from https://www.simonholywell.com/post/2015/07/international-php-dates-with-intl/ into my Main…
Arkhana
  • 33
  • 1
  • 8
0
votes
2 answers

Javascript - Convert DateTime to timestamp, then back to DateTime

I have a JavaScript issue which I can't seem to solve: I convert a Date to timestamp, and when I convert it back, it shows the correct DateTime: DateTime to Timestamp: var ts = Math.floor(Date.now() / 1000); and back - Timestamp to Date: var a =…
marble
  • 51
  • 7
0
votes
1 answer

Unable to install php mcrypt and intl Extension

my fellow developers, i have just barely started to install magento for me to use it and see how it behaves, i downloaded the zip file from here extracted it, and tried to run it in localhost of my MAC OS X, but it is showing me 2 missing extensions…
Syed Naeem
  • 681
  • 8
  • 17
0
votes
0 answers

Unable to install intl extension for php

I have been trying to install the intl extension for php on my command line interface. But have ran into some difficulties. When I run : sudo pecl install intl I get the following error : fatal error: 'ext/standard/php_smart_str.h' file not…
Sory
  • 1
0
votes
2 answers

PHP Intl SpoofChecker::isSuspicious() yields false positive

Case It seems that Spoofchecker from the Intl extention yields false positives: getDefault(); $oSpoofchecker = new…
Code4R7
  • 2,600
  • 1
  • 19
  • 42
0
votes
1 answer

Translating a 404.html file in a React app

I have a React app that has one index.html file with a bundle.js that holds all of the javascript for the app. The React app uses React Intl for localization. In the case I have a 404 error, I want to show a 404 error page. I have created a static…
user5844628
  • 397
  • 1
  • 5
  • 15
0
votes
1 answer

NumberFormatter parse Euro's with comma as decimal splitter

I've a big headache over this. Why isn't this code working? parseCurrency($num, $curr)." in $curr\n"; ?> I've…
maxdaniel98
  • 6,623
  • 6
  • 19
  • 21
0
votes
1 answer

Swiftmailer - Use of undefined constant INTL_IDNA_VARIANT_UTS46

I have problems sending emails with laravel 5.5 because swiftmailer uses the constant INTL_IDNA_VARIANT_UTS46, but it is undefined. Take this example that reproduces the error: if (extension_loaded('intl')) { echo…
manix
  • 14,537
  • 11
  • 70
  • 107
0
votes
2 answers

PHP - INTL Extension missing

I am using php7 in my project. I have enabled intl in php.ini file by un-comment the following line. ;extension=php_intl.dll Then copied ic*.dll file from php folder to apache/bin folder. Also I have checked the Environment Variables. All are…
Ajil MV
  • 58
  • 1
  • 7
0
votes
1 answer

Php homebrew "Symbol not found: _compiler_globals" while loading php intl extension as apache module

I installed php56 via homebrew brew install php56 Loaded it into apache in httpd.conf LoadModule php5_module /usr/local/Cellar/php56/5.6.31_7/libexec/apache2/libphp5.so And everything seems fine. But when I added php-intl brew install…
roma
  • 1,512
  • 10
  • 20
0
votes
1 answer

PHP: Unexpected return value in \Locale::canonicalize

According to PHP docs: Locale::canonicalize( string $locale ) always returns a string. After testing the method with a few inputs, I always get a string.... except for this input…
marcosdsanchez
  • 2,529
  • 2
  • 17
  • 20
0
votes
1 answer

CakePHP Wont Load on Localhost

I'm trying to load a CakePHP project from a localhost server. I'm using PHP5.6. This is the error I keep receiving: Error: Class 'IntlDateFormatter' not found File…
user8422266
0
votes
5 answers

PHP, Apache: Unable to load dynamic library (even if there is one)

Today I have migrated my XAMPP's internals to 64bit: Apache (from 32bit 2.4.25 to 64bit 2.4.27) PHP (from 32bit 7.1.4 to 64bit 7.1.9) I have downloaded each extension used before in 32bit, installed, configured (copy&paste mostly with path changes…
Wirone
  • 3,304
  • 1
  • 29
  • 48
0
votes
0 answers

php_intl.dll loading, The specified module could not be found issue. XAMPP on windows

I am using XAMPP :- v 5.6.31 (3.2.1) apache :- 2.4.26 PHP :- 5.6.31 OS :- Windows 10 When I was trying to run my CakePHP project on xampp server, I got an error "Fatal error: You must enable the intl extension to use CakePHP. in…
bikash.bilz
  • 821
  • 1
  • 13
  • 33