rentberry/coinmarketcap-api

Coinmarketcap API PHP client

1.0.1 2021-03-02 05:42 UTC

README

Build Status License Latest Stable Version Total Downloads

PHP client for CoinMarketCap JSON API

Installation

composer require rentberry/coinmarketcap-api

Usage

$client = new Rentberry\Coinmarketcap\Coinmarketcap();
$client->getTickers();
$client->getTicker('bitcoin');
$client->getExchangeRate('ethereum', 'USD');
$client->convertToFiat(10, 'ethereum', 'USD');
$client->convertToCrypto(10, 'USD', 'ethereum');
$client->getGlobal(); 

License

MIT. See LICENSE