Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 1.2 KB

README.md

File metadata and controls

27 lines (23 loc) · 1.2 KB

Coinmarketcap.com API Client

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