Open fogelfish opened 6 years ago
Add this "zfcampus/statuslib-example": "^1.1" to the default Composer file in the project it look like this "require": { "php": "^5.6 || ^7.0", "zendframework/zend-component-installer": "^1.1.1 || ^2.1.1", "zfcampus/zf-apigility": "^1.4", "zfcampus/zf-apigility-documentation": "^1.3", "zfcampus/zf-development-mode": "^3.2", "zfcampus/statuslib-example": "^1.1" } Then, composer update It work for me.
Hi,
I have the same problem that fogelfish but for me your answer doesn't resolve my problem.
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
Installation failed, reverting ./composer.json to its original content.
Adding this line, as mentioned by femiiisaa92, worked for me.
"require": { . . . "zfcampus/statuslib-example": "^1.1" . . . }
After this, I had run "composer update", and it worked. FYI, I am running on PHP7.2.
This repository has been closed and moved to laminas-api-tools/statuslib-example; a new issue has been opened at https://github.com/laminas-api-tools/statuslib-example/issues/2.
Following along with the official Apigility tutorial, I installed Apigility successfully:
Still following the instructions I got to this point:
but got this output:
The GitHub statuslib-example/composer.json file gives these requirements:
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?