PHPackages                             shahradelahi/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. [API Development](/categories/api)
4. /
5. shahradelahi/coinmarketcap

ActiveLibrary[API Development](/categories/api)

shahradelahi/coinmarketcap
==========================

A PHP library for the CoinMarketCap API Endpoints

1.1.4(2y ago)398666MITPHPPHP &gt;=7.4

Since Aug 10Pushed 2y ago3 watchersCompare

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

READMEChangelog (5)DependenciesVersions (6)Used By (0)

> **Help wanted:** If you can improve this library, please do so. ***Pull requests are welcome.***

PHP CoinMarketCap API
=====================

[](#php-coinmarketcap-api)

This project is designed to help you make your own projects that interact with the [CoinMarketCap API](https://coinmarketcap.com/api/documentation/v1).

#### Requirements

[](#requirements)

```
ext-pcntl: *
ext-curl: *
ext-json: *
php: >=7.4

```

#### Installation

[](#installation)

```
composer require shahradelahi/coinmarketcap

```

 Click for help with installationInstall Composer
----------------

[](#install-composer)

If the above step didn't work, install composer and try again.

#### Debian / Ubuntu

[](#debian--ubuntu)

```
sudo apt-get install curl php-curl
curl -s http://getcomposer.org/installer | php
php composer.phar install

```

Composer not found? Use this command instead:

```
php composer.phar require "shahradelahi/coinmarketcap"

```

#### Windows:

[](#windows)

[Download installer for Windows](https://github.com/jaggedsoft/php-binance-api/#installing-on-windows)

#### Getting started

[](#getting-started)

`composer require shahradelahi/coinmarketcap`

```
require 'vendor/autoload.php';
$CMCApi = new CoinMarketCap\Api();
```

=======

### Documentation

[](#documentation)

This library is based on this [CoinMarketCap](https://coinmarketcap.com/) endpoints, and there many more functions available, but they are not documented here, you should check the [Documentation](https://coinmarketcap.com/api/documentation/v1/) for more information.

- [Cryptocurrencies](docs/cryptocurrencies.md)
- [Fiat](docs/fiat.md)
- [Exchanges](docs/exchanges.md)

### Licence

[](#licence)

```
MIT License

Copyright (c) 2021 Shahrad Elahi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.2% 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 ~196 days

Total

5

Last Release

951d ago

PHP version history (2 changes)1.0.0PHP &gt;=8.0

1.1.0PHP &gt;=7.4

### Community

Maintainers

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

---

Top Contributors

[![shahradelahi](https://avatars.githubusercontent.com/u/17948260?v=4)](https://github.com/shahradelahi "shahradelahi (25 commits)")[![eqmaz](https://avatars.githubusercontent.com/u/21361514?v=4)](https://github.com/eqmaz "eqmaz (1 commits)")

---

Tags

apiapi-wrappercoinmarketcaplibraryphpphpclientcryptoexchangecoinmarketcap

### Embed Badge

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

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

###  Alternatives

[vittominacori/coinmarketcap-php

A PHP wrapper for CoinMarketCap API

2233.1k](/packages/vittominacori-coinmarketcap-php)[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[mocking-magician/coinbase-pro-sdk

Library for coinbase pro API calls

223.2k](/packages/mocking-magician-coinbase-pro-sdk)

PHPackages © 2026

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