PHP wrapper class for CoinMarketCap, built on top of Guzzle.
composer require tregismoreira/coinmarketcap-php
<?php
require __DIR__ . '/vendor/autoload.php';
use CoinMarketCap\Base;
$coinmarketcap = new Base();
// Get ticker
$coinmarketcap->getTicker();
// Get ticker by coin
$coin = 'bitcoin';
$coinmarketcap->getTickerByCoin($coin);
// Get global data
$coinmarketcap->getGlobalData();
See the API documentation for more information about the endpoints and responses.