xendit / xendit-php

Xendit REST API Client for PHP - Card, Virtual Account, Invoice, Disbursement, Recurring Payments, Payout, EWallet, Balance, Retail Outlets Services, xenPlatforms
https://developers.xendit.co/api-reference/
MIT License
155 stars 77 forks source link

Update guzzle-client to v7 #107

Closed rizalfauzie closed 2 years ago

rizalfauzie commented 4 years ago

Hi @stanleynguyen i concern with your comment on https://github.com/xendit/xendit-php/issues/67#issuecomment-618150627

But why guzzle on composer.json strict to version 6?

I have other package that require guzzlehttp/guzzle version 7. I can't install this package. Please Help. :pray:

stanleynguyen commented 4 years ago

Hi @rizalfauzie, we will consider upgrading our GuzzleClient to 7. In the meantime, you can install guzzle 7 in your project and swap the http client with https://github.com/xendit/xendit-php#use-custom-http-client

rizalfauzie commented 4 years ago

i can't @stanleynguyen

  Problem 1
    - xendit/xendit-php 2.5.0 requires guzzlehttp/guzzle ~6.0 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
    - xendit/xendit-php 2.5.1 requires guzzlehttp/guzzle ~6.0 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
    - Can only install one of: guzzlehttp/guzzle[7.2.0, 6.5.x-dev].
    - Installation request for guzzlehttp/guzzle ^7.2 -> satisfiable by guzzlehttp/guzzle[7.2.0].
    - Installation request for xendit/xendit-php ^2.5 -> satisfiable by xendit/xendit-php[2.5.0, 2.5.1].

Why not just add version ^6.0|^7.0 on composer.json? is there any backward compatibility within this package?

stanleynguyen commented 4 years ago

i can't @stanleynguyen

  Problem 1
    - xendit/xendit-php 2.5.0 requires guzzlehttp/guzzle ~6.0 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
    - xendit/xendit-php 2.5.1 requires guzzlehttp/guzzle ~6.0 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
    - Can only install one of: guzzlehttp/guzzle[7.2.0, 6.5.x-dev].
    - Installation request for guzzlehttp/guzzle ^7.2 -> satisfiable by guzzlehttp/guzzle[7.2.0].
    - Installation request for xendit/xendit-php ^2.5 -> satisfiable by xendit/xendit-php[2.5.0, 2.5.1].

Why not just add version ^6.0|^7.0 on composer.json? is there any backward compatibility within this package?

Oh interesting. I didn't know the composer dependency model is this strict. Lemme put in a quick fix

stanleynguyen commented 4 years ago

Hey @rizalfauzie please try again with https://packagist.org/packages/xendit/xendit-php#2.5.2 I'm repurposing this issue as a request to update guzzle-client

rizalfauzie commented 4 years ago

thank you, it work.