Skip to content

No PSR-17 stream factory found, but I have one installed #285

Closed
@ErMaqui

Description

@ErMaqui

PHP version: 7.4.11

Description
No PSR-17 stream factory found. Install a package from this list: https://packagist.org/providers/psr/http-factory-implementation

How to reproduce
I've installed on a package composer. My composer.json file are:

{
  "require": {
    "sentry/sentry": ">= 3.0",
    "php-http/curl-client": "dev-master"
  },
  "config": {
    "vendor-dir": "packages"
  }
}

(I have installed guzzlehttp/psr7 through dependencies).

On composer.lock, I can find this (I've deleted some lines):

        {
            "name": "guzzlehttp/psr7",
            "version": "1.8.1",
            "require": {
                "php": ">=5.4.0",
                "psr/http-message": "~1.0",
                "ralouphie/getallheaders": "^2.0.5 || ^3.0.0"
            },
            "provide": {
                "psr/http-message-implementation": "1.0"
            },
            "require-dev": {
                "ext-zlib": "*",
                "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.10"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.7-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "GuzzleHttp\\Psr7\\": "src/"
                },
                "files": [
                    "src/functions_include.php"
                ]
            },
            "description": "PSR-7 message implementation that also provides common utility methods",
            "time": "2021-03-21T16:25:00+00:00"
        },

On my code, I'm using:

require_once 'packages/autoload.php';

Can anyone help me with this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions