laminas-api-tools / documentation

Laminas API Tools Documentation
https://api-tools.getlaminas.org/documentation
BSD 3-Clause "New" or "Revised" License
5 stars 9 forks source link

REST tutorial no longer works #6

Open weierophinney opened 4 years ago

weierophinney commented 4 years ago

https://apigility.org/documentation/intro/first-rest-service

The step 1 suggests installing the following package:

$ php composer.phar require "zfcampus/statuslib-example:~1.0-dev"

But there are version compatibility issues:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: remove zendframework/zend-authentication 2.5.3
    - Conclusion: don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.3.0|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.3.1|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.3.2|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.3.3|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.3.4|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.3.5|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.3.6|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.3.7|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.3.8|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.3.9|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.4.0|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.4.1|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.4.10|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.4.2|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.4.3|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.4.4|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.4.5|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.4.6|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.4.7|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.4.8|don't install zendframework/zend-authentication 2.5.3
    - don't install zendframework/zendframework 2.4.9|don't install zendframework/zend-authentication 2.5.3
    - Installation request for zendframework/zend-authentication (locked at 2.5.3) -> satisfiable by zendframework/zend-authentication[2.5.3].
    - Conclusion: don't install zendframework/zend-hydrator 2.2.1|install zendframework/zendframework 2.3.0|install zendframework/zendframework 2.3.1|install zendframework/zendframework 2.3.2|install zendframework/zendframework 2.3.3|install zendframework/zendframework 2.3.4|install zendframework/zendframework 2.3.5|install zendframework/zendframework 2.3.6|install zendframework/zendframework 2.3.7|install zendframework/zendframework 2.3.8|install zendframework/zendframework 2.3.9|install zendframework/zendframework 2.4.0|install zendframework/zendframework 2.4.1|install zendframework/zendframework 2.4.10|install zendframework/zendframework 2.4.2|install zendframework/zendframework 2.4.3|install zendframework/zendframework 2.4.4|install zendframework/zendframework 2.4.5|install zendframework/zendframework 2.4.6|install zendframework/zendframework 2.4.7|install zendframework/zendframework 2.4.8|install zendframework/zendframework 2.4.9
    - Conclusion: remove zendframework/zend-hydrator 2.2.1|install zendframework/zendframework 2.3.0|install zendframework/zendframework 2.3.1|install zendframework/zendframework 2.3.2|install zendframework/zendframework 2.3.3|install zendframework/zendframework 2.3.4|install zendframework/zendframework 2.3.5|install zendframework/zendframework 2.3.6|install zendframework/zendframework 2.3.7|install zendframework/zendframework 2.3.8|install zendframework/zendframework 2.3.9|install zendframework/zendframework 2.4.0|install zendframework/zendframework 2.4.1|install zendframework/zendframework 2.4.10|install zendframework/zendframework 2.4.2|install zendframework/zendframework 2.4.3|install zendframework/zendframework 2.4.4|install zendframework/zendframework 2.4.5|install zendframework/zendframework 2.4.6|install zendframework/zendframework 2.4.7|install zendframework/zendframework 2.4.8|install zendframework/zendframework 2.4.9
    - zendframework/zend-stdlib 2.7.0 requires zendframework/zend-hydrator ~1.0 -> satisfiable by zendframework/zend-hydrator[1.0.0, 1.1.0].
    - zendframework/zend-stdlib 2.7.1 requires zendframework/zend-hydrator ~1.0 -> satisfiable by zendframework/zend-hydrator[1.0.0, 1.1.0].
    - zendframework/zend-stdlib 2.7.2 requires zendframework/zend-hydrator ~1.0 -> satisfiable by zendframework/zend-hydrator[1.0.0, 1.1.0].
    - zendframework/zend-stdlib 2.7.3 requires zendframework/zend-hydrator ~1.0 -> satisfiable by zendframework/zend-hydrator[1.0.0, 1.1.0].
    - zendframework/zend-stdlib 2.7.4 requires zendframework/zend-hydrator ~1.0 -> satisfiable by zendframework/zend-hydrator[1.0.0, 1.1.0].
    - zendframework/zend-stdlib 2.7.5 requires zendframework/zend-hydrator ~1.0 -> satisfiable by zendframework/zend-hydrator[1.0.0, 1.1.0].
    - zendframework/zend-stdlib 2.7.6 requires zendframework/zend-hydrator ~1.1 -> satisfiable by zendframework/zend-hydrator[1.1.0].
    - zendframework/zend-stdlib 2.7.7 requires zendframework/zend-hydrator ~1.1 -> satisfiable by zendframework/zend-hydrator[1.1.0].
    - Can only install one of: zendframework/zend-hydrator[1.0.0, 2.2.1].
    - Can only install one of: zendframework/zend-hydrator[1.1.0, 2.2.1].
    - Installation request for zendframework/zend-hydrator (locked at 2.2.1) -> satisfiable by zendframework/zend-hydrator[2.2.1].
    - Installation request for zfcampus/statuslib-example ~1.0-dev -> satisfiable by zfcampus/statuslib-example[1.0.x-dev].
    - Conclusion: don't install zendframework/zend-stdlib 3.0.1|install zendframework/zend-stdlib 2.7.0|install zendframework/zend-stdlib 2.7.1|install zendframework/zend-stdlib 2.7.2|install zendframework/zend-stdlib 2.7.3|install zendframework/zend-stdlib 2.7.4|install zendframework/zend-stdlib 2.7.5|install zendframework/zend-stdlib 2.7.6|install zendframework/zend-stdlib 2.7.7|install zendframework/zendframework 2.3.0|install zendframework/zendframework 2.3.1|install zendframework/zendframework 2.3.2|install zendframework/zendframework 2.3.3|install zendframework/zendframework 2.3.4|install zendframework/zendframework 2.3.5|install zendframework/zendframework 2.3.6|install zendframework/zendframework 2.3.7|install zendframework/zendframework 2.3.8|install zendframework/zendframework 2.3.9|install zendframework/zendframework 2.4.0|install zendframework/zendframework 2.4.1|install zendframework/zendframework 2.4.10|install zendframework/zendframework 2.4.2|install zendframework/zendframework 2.4.3|install zendframework/zendframework 2.4.4|install zendframework/zendframework 2.4.5|install zendframework/zendframework 2.4.6|install zendframework/zendframework 2.4.7|install zendframework/zendframework 2.4.8|install zendframework/zendframework 2.4.9
    - Conclusion: remove zendframework/zend-stdlib 3.0.1|install zendframework/zend-stdlib 2.7.0|install zendframework/zend-stdlib 2.7.1|install zendframework/zend-stdlib 2.7.2|install zendframework/zend-stdlib 2.7.3|install zendframework/zend-stdlib 2.7.4|install zendframework/zend-stdlib 2.7.5|install zendframework/zend-stdlib 2.7.6|install zendframework/zend-stdlib 2.7.7|install zendframework/zendframework 2.3.0|install zendframework/zendframework 2.3.1|install zendframework/zendframework 2.3.2|install zendframework/zendframework 2.3.3|install zendframework/zendframework 2.3.4|install zendframework/zendframework 2.3.5|install zendframework/zendframework 2.3.6|install zendframework/zendframework 2.3.7|install zendframework/zendframework 2.3.8|install zendframework/zendframework 2.3.9|install zendframework/zendframework 2.4.0|install zendframework/zendframework 2.4.1|install zendframework/zendframework 2.4.10|install zendframework/zendframework 2.4.2|install zendframework/zendframework 2.4.3|install zendframework/zendframework 2.4.4|install zendframework/zendframework 2.4.5|install zendframework/zendframework 2.4.6|install zendframework/zendframework 2.4.7|install zendframework/zendframework 2.4.8|install zendframework/zendframework 2.4.9
    - zfcampus/statuslib-example 1.0.x-dev requires zendframework/zend-stdlib ~2.3 -> satisfiable by zendframework/zend-stdlib[2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.10, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8, 2.4.9, 2.5.0, 2.5.1, 2.5.2, 2.6.0, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.7.4, 2.7.5, 2.7.6, 2.7.7], zendframework/zendframework[2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0, 2.4.1, 2.4.10, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8, 2.4.9].
    - Can only install one of: zendframework/zend-stdlib[2.3.0, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.1, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.2, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.3, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.4, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.5, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.6, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.7, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.8, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.9, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.0, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.1, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.10, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.2, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.3, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.4, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.5, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.6, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.7, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.8, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.9, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.5.0, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.5.1, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.5.2, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.6.0, 3.0.1].
    - Installation request for zendframework/zend-stdlib (locked at 3.0.1) -> satisfiable by zendframework/zend-stdlib[3.0.1].

Installation failed, reverting ./composer.json to its original content.

Originally posted by @gitomato at https://github.com/zfcampus/apigility-documentation/issues/73

weierophinney commented 4 years ago

Same issue here


Originally posted by @galdiolo at https://github.com/zfcampus/apigility-documentation/issues/73#issuecomment-248038933

weierophinney commented 4 years ago

I think it is already resolved. Please try install the statuslib-example library using:

composer require zfcampus/statuslib-example

The library is updated to works with ZF3 components. As I can see the documentation is also updated.


Originally posted by @michalbundyra at https://github.com/zfcampus/apigility-documentation/issues/73#issuecomment-257434686