Skip to content

Rentberry/coinmarketcap-api-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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