Cannot use class Zend \ I18n \ View \ Helper \ CurrencyFormat

I am trying to implement the CurrencyFormat Helper, but when I instance and the CurrencyFormat object the application raises exeption:

$var new CurrencyFormat(); File: /site/vendor/zendframework/zend-i18n/Zend/I18n/View/Helper/CurrencyFormat.php :63 Message: Zend\I18n\View\Helper component requires the intl PHP extension 

In my controller, I turn on the library

 use Zend\I18n\View\Helper\CurrencyFormat; 

I think I need to add something to composer.json or config files?

Thanks!

+1
source share
1 answer

The error is pretty clear. The component requires a built-in PHP extension . This is what (usually) is associated with PHP and should be enabled on your server.

+2
source

All Articles