2017 © Pedro Peláez
 

library cmcphp

PHP wrapper for CoinMarketCap API.

image

edbizarro/cmcphp

PHP wrapper for CoinMarketCap API.

  • Wednesday, April 18, 2018
  • by edbizarro
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

, (*1)

StyleCI Latest Stable Version License , (*2)

, (*3)

CoinMarketCap API

This package works with V1 free api, to work with Pro version some work are needed (PR are welcome), (*4)

Here are a few examples on how you can use the package:, (*5)

$market = new Edbizarro\Cmc\Market;

//get ticker (default limit is set to 10)
$market->ticker();

//get ticker with different limit
$market->ticker(100);

//get ticker for a specific coin
$market->ticker('nano');

//get ticker with all options (limit 100, start 0 and convert to BRL)
$market->ticker(100, 0, 'BRL');

Response example, (*6)

{
    "id": "bitcoin",
    "name": "Bitcoin",
    "symbol": "BTC",
    "rank": "1",
    "price_usd": "9087.87",
    "price_btc": "1.0",
    "24h_volume_usd": "7117920000.0",
    "market_cap_usd": "153074828154",
    "available_supply": "16843862.0",
    "total_supply": "16843862.0",
    "max_supply": "21000000.0",
    "percent_change_1h": "-0.86",
    "percent_change_24h": "4.39",
    "percent_change_7d": "-21.76",
    "last_updated": "1517707168",
    "price_brl": "29247.492021",
    "24h_volume_brl": "22907601936.0",
    "market_cap_brl": "492640719448"
},
{
    "id": "ethereum",
    "name": "Ethereum",
    "symbol": "ETH",
    "rank": "2",
    "price_usd": "952.455",
    "price_btc": "0.104047",
    "24h_volume_usd": "3178180000.0",
    "market_cap_usd": "92765037932.0",
    "available_supply": "97395717.0",
    "total_supply": "97395717.0",
    "max_supply": null,
    "percent_change_1h": "-1.23",
    "percent_change_24h": "5.17",
    "percent_change_7d": "-15.64",
    "last_updated": "1517707154",
    "price_brl": "3065.2859265",
    "24h_volume_brl": "10228336694.0",
    "market_cap_brl": "298545721577"
}

Installation

You can install the package via composer:, (*7)

bash composer require edbizarro/cmcphp, (*8)


forthebadge, (*9)

The Versions

18/04 2018

dev-master

9999999-dev

PHP wrapper for CoinMarketCap API.

  Sources   Download

MIT

The Requires

 

The Development Requires

20/03 2018

v1.1.0

1.1.0.0

PHP wrapper for CoinMarketCap API.

  Sources   Download

MIT

The Requires

 

The Development Requires

18/02 2018

v1.0.1

1.0.1.0

PHP wrapper for CoinMarketCap API.

  Sources   Download

MIT

The Requires

 

The Development Requires

04/02 2018

v1.0

1.0.0.0

PHP wrapper for CoinMarketCap API.

  Sources   Download

MIT

The Requires

 

The Development Requires