I tried to just load zend-authentication, while doing it I get an error:
require zendframework/zend-authentication Using version ^2.6 for zendframework/zend-authentication ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.
Problem 1 - doctrine/instantiator 1.1.0 requires php ^7.1 -> your PHP version (5.6.31) does not satisfy that requirement. - doctrine/instantiator 1.1.0 requires php ^7.1 -> your PHP version (5.6.31) does not satisfy that requirement. - doctrine/instantiator 1.1.0 requires php ^7.1 -> your PHP version (5.6.31) does not satisfy that requirement. - Installation request for doctrine/instantiator (locked at 1.1.0) -> satisfiable by doctrine/instantiator[1.1.0].
Installation failed, reverting ./composer.json to its original content.
The error shows that the php-version might be wrong, but if I open my wamp startpage on localhost, it shows php version 7.1.9.
Why composer sees the wrong php version and how to fix it?