Possible to disable intl requirement for Symfony?

前端 未结 1 1295
暖寄归人
暖寄归人 2021-01-14 18:31

I have a Symfony 2 project on a shared host. And apparently provider won\'t switch the Intl extension on for PHP. Is there a way to turn it on or am I forced to reevaluate t

相关标签:
1条回答
  • 2021-01-14 18:51

    If your web server doesn't provide the intl extension, you can use the Locale component.

    It can be easily installed with composer or using the Git repository.

    Source: http://symfony.com/doc/master/components/locale.html

    UPDATE

    The Locale component is deprecated since version 2.3 and will be removed in Symfony 3.0. You should use the Intl component instead (http://symfony.com/doc/master/components/intl.html).

    0 讨论(0)
提交回复
热议问题