btcpayserver / btcpayserver-php-client

PHP implementation for the BTCPayServer cryptographically secure RESTful API
MIT License
30 stars 33 forks source link

Progressing the PHP Client #50

Open damanic opened 3 years ago

damanic commented 3 years ago

Is this PHP Client for btcpayserver still worth using?

Official BTCPayServer docs point directly to this Repo. https://docs.btcpayserver.org/CustomIntegration/

Yet this repo appears to be incomplete with no releases since 2019.

It appears incomplete because it has references to a class that does not exist, and yml configuration method that does not appear to be supported.

$btcpay = new \BTCPayServer\BTCPayServer(__DIR__ . '/config.yml');

It also points to the bitpay repository from which it was cloned, suggesting that this repo may diverge from full compatibility with BitPay. https://github.com/btcpayserver/php-bitpay-client

And then there is a actively maintained bitpay PHP v2 client here: https://github.com/bitpay/php-bitpay-client-v2

I am confused as to which library I should leverage for a new integration. Will the bitpay client continue to be compatible with BTCPayServer? Or would it be better to progress and maintain a PHP client for btcpayserver?

damanic commented 3 years ago

Ah! I just found: https://github.com/btcpayserver/btcpayserver-greenfield-php

And I am guessing BTCPayServer docs have not been updated as there is no official release yet - work in progress.

Perhaps update the README on this repo to indicate it is being superseded.

woutersamaey commented 3 years ago

You should start to use the new Greenfield API. We have a PHP library in the works. It does not have an official release yet, but the calls that are implemented are mostly stable.

Help and feedback are welcome!

https://github.com/btcpayserver/btcpayserver-greenfield-php