PHPackages                             vorapoap/coinmarketcap - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vorapoap/coinmarketcap

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vorapoap/coinmarketcap
======================

Access Coinmarketcap.com via local database wrapper

v1.0(8y ago)032MITPHPPHP &gt;=5.3.0

Since Dec 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/vorapoap/coinmarketcap)[ Packagist](https://packagist.org/packages/vorapoap/coinmarketcap)[ RSS](/packages/vorapoap-coinmarketcap/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

coinmarketcap
=============

[](#coinmarketcap)

Store and retreive Coinmarketcap's data from local database

### Install using composer

[](#install-using-composer)

Create composer.json file

```
{
    "name": "yourproject/yourproject",
    "type": "project",
    "require": {
        "vorapoap/coinmarketcap": "*"
    }
}

```

and run `composer update` or run this command in your command line: `composer require voapoap/coinmarketcap`

### 1. Define options

[](#1-define-options)

1. Use existing PDO connection ```
    $options['pdo'] = $existingPDOConnection;
    ```
2. Use new connection ```
    $options['host'] = 'localhost';
    $options['database'] = 'coinmarketcap';
    $options['user'] = 'user';
    $options['password'] = 'password';
    ```

### 2. Create object

[](#2-create-object)

```
$coin = new Coinmarketcap($options);
```

On object constructing, the table will be checked for existence. If the table doesn't exist, the required table *coinmarketcap* is created, you can also define $options\['prefix'\] to prefix the table.

*Other options*

NameDescriptionprefixTable prefix, default is nonecoinmarketcap-limitDefault is 100 (See \[\])coinmarketcap-update-intervalUpdate interval, default is 60s### 3. Usage

[](#3-usage)

You can also do $coin-&gt;update(150) to override default coin limit

```
$coin = new Coinmarketcap($options);
$coin->update();
$coin->getCoin("btc");
$coin->getCoin("bitcoin");
```

Automtically retrieve data from Coinmarketcap base on update interval.

```
$coin = new Coinmarketcap($options);
$coin->getCoin("btc");
```

### 4. Donation

[](#4-donation)

If you like this work and like to donate:

- BTC: 13SsoAUNv1KobhnDSZytLo71NHAGu9XxUd
- ETH: 0x1E0d07890Cb550F18eE6B80dC5739CFe776C72b5

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3073d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f2b785d6d53dc9390e074c6b81be08a18da1fbccd8a7a6333e19050ca1ab6070?d=identicon)[vorapoap](/maintainers/vorapoap)

---

Top Contributors

[![vorapoap](https://avatars.githubusercontent.com/u/107170?v=4)](https://github.com/vorapoap "vorapoap (24 commits)")

### Embed Badge

![Health badge](/badges/vorapoap-coinmarketcap/health.svg)

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

PHPackages © 2026

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