Skip to content

Provide psr/http-client-implementation in composer.json #38

@powli

Description

@powli
Q A
Bug? maybe
New Feature? maybe
Version 1.2.0

Actual Behavior

Package does provide only php-http/client-implementation

Expected Behavior

Package should also provide psr/http-client-implementation if fully compatible with PSR-18

Steps to Reproduce

Create a project with composer.json:

...
"require": {
        "psr/http-client": "^1.0.0",
        "psr/http-client-implementation": "^1.0.0",
        "psr/http-message": "^1.0.0",
        "psr/http-message-implementation": "^1.0.0",
        "psr/http-factory": "^1.0.0",
        "psr/http-factory-implementation": "^1.0.0",
},
"require-dev": {
        "phpunit/phpunit": "^6.0.0",
        "nyholm/psr7": "^1.0.0",
        "php-http/mock-client": "^1.2.0"
},
...

Composer install/update will fail with Your requirements could not be resolved to an installable set of packages. where it would succeed if I'd require php-http/client-implementation instead.

Possible Solutions

Add psr/http-client-implementation to composer.json provides section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions