PHP package for the BlockChair API.
Run the following command to install this package into your project.
composer require coinrequest/blockchair-php-api
You will need Composer to install this package.
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}
Run the tests in the Tests directory with PHPUnit.
- BlockChair - For the Blockchain data :)
- PHPUnit - Test Framework
- Guzzle - For HTTP Requests
Please help us to develop this package. Every input and/or feedback is really appreciated!
This project is licensed under the MIT License.