norkunas / onesignal-php-api

OneSignal API for PHP
MIT License
233 stars 82 forks source link

psr/http-factory-implementation not found #132

Closed KDederichs closed 4 years ago

KDederichs commented 4 years ago

Hey, I'm trying to update to 2.0 but I just keep getting

  Problem 1
    - norkunas/onesignal-php-api v2.0.1 requires psr/http-factory-implementation ^1.0 -> no matching package found.
    - norkunas/onesignal-php-api v2.0.0 requires psr/http-factory-implementation ^1.0 -> no matching package found.
    - Installation request for norkunas/onesignal-php-api ^2.0 -> satisfiable by norkunas/onesignal-php-api[v2.0.0, v2.0.1].

it doesn't seem like psr/http-factory-implementation is even a thing? According to https://github.com/php-fig/http-factory there are some implementations but that package is not it.

norkunas commented 4 years ago

Hello, first you need to install any factory implementation and then update, you can see them here https://packagist.org/providers/psr/http-factory-implementation, this is just a virtual package like an interface not a real implementation. Same as on v1 with php-http/client-implementation.

KDederichs commented 4 years ago

I just installed guzzlehttp/psr7 but it's still giving me the same error, any ideas?

norkunas commented 4 years ago

@KDederichs it seems that guzzlehttp/psr7 doesn't released it's version with providing http-factory-implementation, so you'll need currently to choose another psr7 provider or use dev-master.

KDederichs commented 4 years ago

Ok, thanks!