Question

I read the documentation but when I do this :

php composer.phar require sonata-project/intl-bundle

I have this message in my console :5

Please provide a version constraint for the sonata-project/intl-bundle requirement: 

So I tried "master" or "2.*" but this doesn't work.

I'm using Symfony 2.1.7 and PHP 5.4.3, with the php_intl extension.

If someone can help me... Thanks !

Was it helpful?

Solution

You should take a look at their package to determine which version of the package you want. In this case, you only have a dev-master version, so you should run this:

$ php composer.phar require sonata-project/intl-bundle:dev-master

For a longer answer on how to install bundles with composer, see this answer on another question

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top