vrajroham / laravel-bitpay

Laravel BitPay Client | Accept Bitcoin(Ƀ) and Bitcoin Cash for your business with your Laravel application
MIT License
74 stars 34 forks source link

installation not working for Laravel 5.6/7/8 #10

Closed thes01 closed 2 years ago

thes01 commented 5 years ago

Hi,

I am not able to install the package, seamingly because of a conflict of dependencies required by bitpay/phpclient package.

I have tried fresh packages of Laravel 5.6 up to 5.8. I'm using php7.2-fpm.

You can find the composer dump here: composer-dump.txt

vrajroham commented 5 years ago

@thes01 Thank you for your patience. :)

There was an issue with an upstream repository which caused a lot of issues in installation. Recently bitpay dumped the old upstream repository and rolled out new SDK. Because of this, the wrapper was of no use.

The good news is I've re-written this wrapper with support of the new Bitpay SDK and released a major version of this wrapper with some new features. Please check out V2.0.0

Thank you :)

vahidalvandi commented 4 years ago

in laravel 6

Using version ^2.0 for vrajroham/laravel-bitpay
./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1

vrajroham commented 4 years ago

@vahidalvandi I'll update the dependencies today and update you here

vrajroham commented 4 years ago

@vahidalvandi You are running php 7.2version but upstream bitpay library requires min PHP 7.3version. You can upgrade PHP version and try again

vahidalvandi commented 4 years ago

oh yes . thank you

vahidalvandi commented 4 years ago

after upgrade to php 7.3 not work

Using version ^2.0 for vrajroham/laravel-bitpay
./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1

ikeliec commented 4 years ago

Hello @vrajroham,

I am trying to install the package, but it is not successful. My PHP version is 7.4.2. Below is the log/error message

Using version ^2.0 for vrajroham/laravel-bitpay ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1

zigagrcar commented 4 years ago

Well enable the php extension didn't you read the log ?

valsha commented 4 years ago

same problem, PHP 7.4.5 Laravel 7 all php extension is ENABLED!

Problem 1

asadglobalshopaholics commented 4 years ago

PHP 7.4.8 is running on my machine but still stuck in installation

Problem 1

Thanks for your help in advance

vrajroham commented 4 years ago

@vahidalvandi It seems ext-gmp extension is missing on the machine. From your stacktrace:

...
- bitpay/key-utils v1.0.1908 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
...

@valsha @asadglobalshopaholics It seems that there is some issue with ext-json extension version. This is the upstream official PHP SDK dependency.

I just tried installing the package with PHP 7.4.8 and it was installed correctly.

image

bardiaabasirad commented 3 years ago

Some problem with php 8.0.1 laravel 8.12

Using version ^2.0 for vrajroham/laravel-bitpay ./composer.json has been updated Running composer update vrajroham/laravel-bitpay Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

vrajroham commented 3 years ago

Related to https://github.com/vrajroham/laravel-bitpay/issues/25.

vrajroham commented 2 years ago

Closing due to inactivity