coinrequest/blockchair-php-api

PHP API client for BlockChair

0.1.1 2019-06-28 13:56 UTC

This package is auto-updated.

Last update: 2024-02-29 00:18:41 UTC


README

PHP package for the BlockChair API.

Getting Started

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

composer require coinrequest/blockchair-php-api 

Prerequisites

You will need Composer to install this package.

Installing

After installing this package with composer, create a new BlockChair instance.

Something like this

$blockChair = new BlockChair();

And call the desired endpoint

$blockChair->bitcoin->stats();

Chains:

  • Bitcoin
  • Ethereum
  • BitcoinCash
  • BitcoinSv
  • Litecoin
  • Dogecoin
  • Dash
  • Groestlcoin

The current implemented endpoints are:

  • {chain}/stats
  • {chain}/dashboards/block/{blockId}
  • {chain}/dashboards/transaction/{txId}
  • {chain}/dashboards/address/{address}
  • ethereum/dashboards/uncle/{txId}

Running the tests

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.