norkunas / onesignal-php-api

OneSignal API for PHP
MIT License
234 stars 83 forks source link

Dependency conflict (Guzzle) #29

Closed olivernagy closed 7 years ago

olivernagy commented 8 years ago

Looks like Guzzle ~5.3 is still a dependency for this project, which creates a conflict with another library I'm using (chargify-php-sdk). Since in the README there's an option for either 6.x or 5.x, can we remove ~5.3 as a dependency?

$ composer require norkunas/onesignal-php-api  
Problem 1  
    - Can only install one of: guzzlehttp/guzzle[5.3.0, 6.1.1].  
    - Can only install one of: guzzlehttp/guzzle[6.1.1, 5.3.0].  
    - Can only install one of: guzzlehttp/guzzle[5.3.0, 6.1.1].  
    - norkunas/onesignal-php-api v0.1.5 requires guzzlehttp/guzzle ~5.3 -> satisfiable by guzzlehttp/guzzle[5.3.0].  
    - Installation request for norkunas/onesignal-php-api ^0.1.5 -> satisfiable by norkunas/onesignal-php-api[v0.1.5].  
    - Installation request for guzzlehttp/guzzle (locked at 6.1.1) -> satisfiable by guzzlehttp/guzzle[6.1.1].

Thanks for the answer

norkunas commented 8 years ago

@olivernagy 1.0 is not released yet, so you have to install dev-master version

worldlyjohn commented 7 years ago

@norkunas i'm getting an error on this... composer require norkunas/onesignal-php-api:dev-master

norkunas commented 7 years ago

@worldlyjohn could you explain more what error?

worldlyjohn commented 7 years ago

wow thanks for quick response!

$ composer require norkunas/onesignal-php-api:dev-master

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for norkunas/onesignal-php-api dev-master -> satisfiable by norkunas/onesignal-php-api[dev-master].
    - norkunas/onesignal-php-api dev-master requires php-http/client-implementation ^1.0 -> 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://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
norkunas commented 7 years ago

Please read readme how to setup v1 :) you need to install http-client implementation before.

2016-12-02 17:06 "John Brennan" notifications@github.com rašė:

wow thanks for quick response!

$ composer require norkunas/onesignal-php-api:dev-master

Your requirements could not be resolved to an installable set of packages.

Problem 1

  • Installation request for norkunas/onesignal-php-api dev-master -> satisfiable by norkunas/onesignal-php-api[dev-master].
  • norkunas/onesignal-php-api dev-master requires php-http/client-implementation ^1.0 -> no matching package found.

Potential causes:

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/norkunas/onesignal-php-api/issues/29#issuecomment-264474811, or mute the thread https://github.com/notifications/unsubscribe-auth/ACmMOOKu1hp2oaBP16clOyrtf4ezWK9Fks5rEDQCgaJpZM4IK9pb .