coinrequest/button-wallet-php-api

PHP API client for BUTTON Wallet

0.2.1 2020-11-19 09:25 UTC

This package is auto-updated.

Last update: 2024-04-19 17:47:00 UTC


README

PHP package for the BUTTON Wallet API.

Getting Started

Run the following command to install this package into your project.

composer require coinrequest/button-wallet-php-api 

Prerequisites

You will need Composer to install this package.

Installing

After installing this package with composer, create a new ButtonWallet instance. And include your API key.

Something like this

$buttonWallet = new ButtonWallet('yourpersonalapikey');

And call the desired endpoint

$buttonWallet->linkEndpoint()->createLink($params);

The current implemented endpoints are:

  • /FastLink/
    • create
    • readAll
    • readInfoByUuid
    • readByUuid
    • webhook
    • webhook/set

Documentation of the endpoints will be later available online. Please check the code for documentation and example requests and responses.

Running the tests

First, create a .env file and set your API Key. Please see the .env.example for the template.

Run the tests in the Tests directory with PHPUnit.

Built With

Contributing

Please help us to develop this package. Every input and/or feedback is really appreciated!

License

This project is licensed under the MIT License.