zfcampus / statuslib-example

Library for use with Apigility examples
BSD 3-Clause "New" or "Revised" License
9 stars 16 forks source link

zf-configuration composer dependency fails #2

Closed ralphschindler closed 10 years ago

ralphschindler commented 10 years ago

For some reason, the zf-configuration dependency cannot be found when using the installation method in the README. If zf-configuration is installed before statuslib-example, it passes.

$ ./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 request for zfcampus/statuslib-example dev-master -> satisfiable by zfcampus/statuslib-example[dev-master].
    - zfcampus/statuslib-example dev-master requires zfcampus/zf-configuration ~1.0-dev -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
weierophinney commented 10 years ago

This makes sense. Composer defaults to stable packages, unless you add "minimum-stability": "dev" to your application package. Once we have stable packages, these issues will go away.

dotrugirl commented 10 years ago

Installing it for the first time, facing the issue.What command to write instead php composer.phar require "zfcampus/statuslib-example:~1.0-dev" in command line to get the package installed?

weierophinney commented 10 years ago

@dotrugirl Use the manual configuration steps, where you add the packages to your composer.json; add both this and the zfcampus/zf-configuration package in there, both with stability ~1.0-dev. Afterwards, do a composer update or composer install.