The Currency module requires Composer dependencies. I am trying to install it with the following command:
composer.phar require drupal/currency
It returns the following error.
[InvalidArgumentException]
Could not find package drupal/currency at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability
What am I doing wrong?
Furthermore, if I specify the version of currency with composer.phar require drupal/currency:8.x-3.1
, I get this error:
[UnexpectedValueException]
Could not parse version constraint 8.x-3.1: Invalid version string "8.x-3.1"
Anything is going wrong and I don't know what. The file composer.json and composer.phar are both in root directory of the Drupal installation.