ArweaveTeam/arweave-php

Error installing SDK in Docker container, even with gmp support enabled

Opened this issue · 4 comments

PHP Version: 7.2.17

Was only able to get gmp installed via: laradock/laradock#652 (comment)

During composer install

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

  Problem 1
    - Installation request for arweave/arweave-sdk 0.2.0 -> satisfiable by arweave/arweave-sdk[v0.2.0].
    - arweave/arweave-sdk v0.2.0 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.

$ php -i | grep gmp
/usr/local/etc/php/conf.d/docker-php-ext-gmp.ini,
gmp
gmp support => enabled

Furthermore this makes deploying to a demo server very time consuming infeasible, I can imagine this being a barrier for others as well. Is there any alternative to this module that I might be able to help implement for the sake of getting this Gitcoin bounty over the finish line: ArweaveTeam/Bounties#1 (comment)

From my initial research it looks like bcmath is widely supported and is suitable for many of the same tasks as gmp, any thoughts here...?

From Discord: it looks like switching out the JWT/K package with https://github.com/fproject/php-jwt is potentially the best way forward, with RSA-PSS support being questionable and needing testing

I had the same issue while gmp was installed. Switching to PHP 7.4 solved the problem.