PHPackages                             edbizarro/cmcphp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. edbizarro/cmcphp

ActiveLibrary[HTTP &amp; Networking](/categories/http)

edbizarro/cmcphp
================

PHP wrapper for CoinMarketCap API.

v2.0.1(7y ago)0151MITPHPPHP ^7.1.13CI passing

Since Feb 4Pushed 4mo agoCompare

[ Source](https://github.com/edbizarro/cmcphp)[ Packagist](https://packagist.org/packages/edbizarro/cmcphp)[ RSS](/packages/edbizarro-cmcphp/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)Dependencies (2)Versions (8)Used By (0)

 [![](https://camo.githubusercontent.com/241c19ce21eb89106e3538f497c1a87eb1cd0ae20ec5d1cfd622eb4c750e9713/68747470733a2f2f73322e636f696e6d61726b65746361702e636f6d2f67656e6572617465642f737061726b6c696e65732f7765622f37642f7573642f313536372e706e67)](https://camo.githubusercontent.com/241c19ce21eb89106e3538f497c1a87eb1cd0ae20ec5d1cfd622eb4c750e9713/68747470733a2f2f73322e636f696e6d61726b65746361702e636f6d2f67656e6572617465642f737061726b6c696e65732f7765622f37642f7573642f313536372e706e67)

 [![StyleCI](https://camo.githubusercontent.com/4104b23e4b71877b22f61da1b86eb925cb75652b339844554d035a5a2b51e8a0/68747470733a2f2f7374796c6563692e696f2f7265706f732f3132303134323536382f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/120142568) [![](https://camo.githubusercontent.com/7cca45e9722a0308c3947fd05ac047186739e647d8f23ffb28ccfef88fb9d031/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f35323561393039356531336135396331313435652f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/edbizarro/cmcphp/maintainability)[![](https://camo.githubusercontent.com/78f21a29b684f5ffbc78ea71861a025bf24605dee0453a90ebc9b42ea0290790/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d253246656462697a6172726f253246636d637068702e7376673f747970653d736869656c64)](https://app.fossa.io/projects/git%2Bgithub.com%2Fedbizarro%2Fcmcphp?ref=badge_shield) [![](https://camo.githubusercontent.com/3e25549997ee4844e51885cb39a361e5bbfca89eed5affbea4757425029f4ed6/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3130373665633535653565373466613461633736393337316430666261653738)](https://www.codacy.com/app/edbizarro/cmcphp?utm_source=github.com&utm_medium=referral&utm_content=edbizarro/cmcphp&utm_campaign=Badge_Grade) [![Latest Stable Version](https://camo.githubusercontent.com/143c76ad8a4804310268a0cd9bc92d7ae1577aa4f99765c644b384a4d5e04b1d/68747470733a2f2f706f7365722e707567782e6f72672f656462697a6172726f2f636d637068702f762f737461626c652e737667)](https://packagist.org/packages/edbizarro/cmcphp) [![License](https://camo.githubusercontent.com/f7aa2ef2662dbfdc1f5f8373a561378af6879451b1073c9c7c7c94525c50ac64/68747470733a2f2f706f7365722e707567782e6f72672f656462697a6172726f2f636d637068702f6c6963656e73652e737667)](https://packagist.org/packages/edbizarro/cmcphp) [![](https://camo.githubusercontent.com/f6b6fc111e7259738262528b1d9a0ea962f1c4c466a4a2cf5ab8100aaa815778/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d253246656462697a6172726f253246636d637068702e7376673f747970653d736d616c6c)](https://app.fossa.io/projects/git%2Bgithub.com%2Fedbizarro%2Fcmcphp?ref=badge_small)

CoinMarketCap API
=================

[](#coinmarketcap-api)

> This package works with V1 free api, to work with [Pro](https://pro.coinmarketcap.com/migrate/) version some work are needed (PR are welcome)

Here are a few examples on how you can use the package:

```
$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

```
{
    "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
------------

[](#installation)

You can install the package via composer:

```
composer require edbizarro/cmcphp
```

---

[![forthebadge](https://camo.githubusercontent.com/37bfc3206551784f5c22f6c97ce345b037641090b059efac8647934662eb4537/687474703a2f2f666f7274686562616467652e636f6d2f696d616765732f6261646765732f636f6e7461696e732d6361742d676966732e737667)](http://forthebadge.com)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance52

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 87% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~110 days

Total

5

Last Release

2578d ago

Major Versions

v1.1.0 → v2.02018-12-21

PHP version history (2 changes)v1.0PHP ^7.0

v1.1.0PHP ^7.1.13

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a251f8a53d54b0f73dc5a82642e1fb06bf51ec36676da814fa8edd839114ceb?d=identicon)[edbizarro](/maintainers/edbizarro)

---

Top Contributors

[![edbizarro](https://avatars.githubusercontent.com/u/84926?v=4)](https://github.com/edbizarro "edbizarro (20 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![fossabot](https://avatars.githubusercontent.com/u/29791463?v=4)](https://github.com/fossabot "fossabot (1 commits)")

---

Tags

bitcoincoinmarketcapcoinmarketcap-apicryptocurrenciescryptocurrencyguzzlebitcoinethereumcoinmarketcapnanoCoint Market Cap

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/edbizarro-cmcphp/health.svg)

```
[![Health](https://phpackages.com/badges/edbizarro-cmcphp/health.svg)](https://phpackages.com/packages/edbizarro-cmcphp)
```

###  Alternatives

[ccxt/ccxt

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

41.5k328.9k1](/packages/ccxt-ccxt)[denpa/php-bitcoinrpc

Bitcoin JSON-RPC client based on GuzzleHttp

284217.4k4](/packages/denpa-php-bitcoinrpc)[coinbase/coinbase-commerce

Coinbase Commerce API library

148275.7k2](/packages/coinbase-coinbase-commerce)[denpa/laravel-bitcoinrpc

Bitcoin JSON-RPC Service Provider for Laravel

9053.4k](/packages/denpa-laravel-bitcoinrpc)[kornrunner/ccxt

A PHP cryptocurrency trading library with support for more than 90 bitcoin/altcoin exchanges

371.6k](/packages/kornrunner-ccxt)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
