/coinmarketcap-php

PHP wrapper class for CoinMarketCap.

Primary LanguagePHPMIT LicenseMIT

CoinMarketCap PHP Wrapper

PHP wrapper class for CoinMarketCap, built on top of Guzzle.

Requirements

Installation

composer require tregismoreira/coinmarketcap-php

Usage

<?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.