php-http / curl-client

cURL client
http://httplug.io
MIT License
445 stars 28 forks source link

Can`t install curl-client #10

Closed funivan closed 8 years ago

funivan commented 8 years ago

Hello. I try to install php-http/curl-client but it fails

composer require php-http/curl-client           
Using version ^0.3.0 for php-http/curl-client
./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 php-http/curl-client ^0.3.0 -> satisfiable by php-http/curl-client[v0.3.0].
    - php-http/curl-client v0.3.0 requires php-http/message-factory ^0.4@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 <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.
mekras commented 8 years ago

Try to add these lines to your composer.json:

    "prefer-stable": true,
    "minimum-stability": "dev"
funivan commented 8 years ago

Thanks for fast response. But this will change all packages minimum stability version to dev. Is there other way to install this package?

mekras commented 8 years ago

But this will change all packages minimum stability version to dev.

Packages, which has stable versions will not be affected by this setting. See https://getcomposer.org/doc/04-schema.md#prefer-stable

Is there other way to install this package?

Currently no.

funivan commented 8 years ago

Thanks for help @mekras ;)

dbu commented 8 years ago

But this will change all packages minimum stability version to dev. Is there other way to install this package?

your only alternative is to explicitly require all dependencies that have no stable version yet with @dev. but you need to list even indirect dependencies then.

we aim to release a stable first version of the libraries in january.

funivan commented 8 years ago

@dbu :+1 wait for stable =)