Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

composer require zendframework/zend-expressive broken #624

Open
itapai opened this issue Jul 10, 2018 · 3 comments
Open

composer require zendframework/zend-expressive broken #624

itapai opened this issue Jul 10, 2018 · 3 comments

Comments

@itapai
Copy link

itapai commented Jul 10, 2018

I'm trying to include zend-expressive in my project, but unsuccessfully.
When i require zend-expressive via console ( composer require zendframework/zend-expressive ), i get the following error:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - zendframework/zend-expressive 3.0.0 requires zendframework/zend-httphandlerrunner ^1.0.1 -> satisfiable by zendframework/zend-httphandlerrunner[1.0.1].
    - zendframework/zend-expressive 3.0.1 requires zendframework/zend-httphandlerrunner ^1.0.1 -> satisfiable by zendframework/zend-httphandlerrunner[1.0.1].
    - zendframework/zend-expressive 3.0.2 requires zendframework/zend-httphandlerrunner ^1.0.1 -> satisfiable by zendframework/zend-httphandlerrunner[1.0.1].
    - zendframework/zend-httphandlerrunner 1.0.1 requires psr/http-message-implementation ^1.0 -> no matching package found.
    - Installation request for zendframework/zend-expressive ^3.0 -> satisfiable by zendframework/zend-expressive[3.0.0, 3.0.1, 3.0.2].

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://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Code to reproduce the issue

composer require zendframework/zend-expressive

Expected results

Expected composer to install the package

Actual results

Composer returned an error regarding package dependencies

@JoeBengalen
Copy link

It's not broken, you are missing a psr/http-message-implementation, e.g. zendframework/zend-diactoros

So I guess this would do:
composer require zendframework/zend-expressive zendframework/zend-diactoros

@weierophinney
Copy link
Member

@ksemeks One new tool for you: composer why-not <package>. This will give you detailed information on what blocks installation of a package.

That said, your error message indicates the issue:

zendframework/zend-httphandlerrunner 1.0.1 requires psr/http-message-implementation ^1.0 -> no matching package found.

We do not currently cover installation within an existing project, which tells me this should be documented. I'm adding the "documentation" and "help wanted" labels presently, so somebody can pick that up.

@weierophinney
Copy link
Member

This repository has been closed and moved to mezzio/mezzio; a new issue has been opened at mezzio/mezzio#8.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants