Search code examples
symfonyphp-extension

Possible to disable intl requirement for Symfony?


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 the whole project?


Solution

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