Following along with the official Apigility tutorial, I installed Apigility successfully:
composer create-project zfcampus/zf-apigility-skeleton ./apigility
Still following the instructions I got to this point:
composer require zfcampus/statuslib-example
but got this output:
Using version ^1.1 for zfcampus/statuslib-example
./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
- Can only install one of: zendframework/zend-config[2.6.0, 3.2.0].
- Can only install one of: zendframework/zend-config[3.2.0, 2.6.0].
- Can only install one of: zendframework/zend-config[2.6.0, 3.2.0].
- zfcampus/statuslib-example 1.1.0 requires zendframework/zend-config ^2.6 -> satisfiable by zendframework/zend-config[2.6.0].
- Installation request for zfcampus/statuslib-example ^1.1 -> satisfiable by zfcampus/statuslib-example[1.1.0].
- Installation request for zendframework/zend-config (locked at 3.2.0) -> satisfiable by zendframework/zend-config[3.2.0].
Installation failed, reverting ./composer.json to its original content.
The GitHub statuslib-example/composer.json file gives these requirements:
"require": {
"php": "^5.6 || ^7.0",
"ramsey/uuid": "^2.8",
"zendframework/zend-config": "^2.6",
"zendframework/zend-db": "^2.8.2",
"zendframework/zend-paginator": "^2.7",
"zendframework/zend-hydrator": "^1.1 || ^2.0",
"zendframework/zend-stdlib": "^2.7.7 || ^3.0.1",
"zfcampus/zf-configuration": "^1.0"
},
But in my installation of Apigility "zendframework/zend-config" is at 3.2.0. (Also "zendframework/zend-db" is at 2.9.3; "zendframework/zend-paginator" is at 2.8.1; "zfcampus/zf-configuration" is at 1.3.3; and I am using PHP 7.2.4.) Among these the only requirement that fails is zend-config" at 3.2.0.
How can I install zfcampus/statuslib-example?