tregismoreira/coinmarketcap-php

PHP wrapper class for CoinMarketCap.

Installs: 438

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 2

Open Issues: 4

pkg:composer/tregismoreira/coinmarketcap-php

dev-master 2017-04-23 21:35 UTC

This package is not auto-updated.

Last update: 2025-11-01 00:53:33 UTC


README

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.