PHPackages                             musheabdulhakim/coingecko - 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. musheabdulhakim/coingecko

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

musheabdulhakim/coingecko
=========================

CoinGecko API client for PHP and Laravel Applications.

v1.0.3(1y ago)1821MITPHPPHP ^8.2|^8.3CI failing

Since Sep 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/MusheAbdulHakim/CoinGeckoApi)[ Packagist](https://packagist.org/packages/musheabdulhakim/coingecko)[ Fund](https://paystack.com/pay/musheabdulhakim)[ GitHub Sponsors](https://github.com/musheabdulhakim)[ RSS](/packages/musheabdulhakim-coingecko/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (15)Versions (6)Used By (0)

[![CoinGecko client example](art/example.png)](art/example.png) [![GitHub Workflow Status (master)](https://github.com/MusheAbdulHakim/coingeckoapi/actions/workflows/tests.yml/badge.svg)](https://github.com/MusheAbdulHakim//actions) [![Total Downloads](https://camo.githubusercontent.com/b8f2d593be5786f0ede9841fe05278ad29033586381caa1d328b88d4cf550b0d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d75736865616264756c68616b696d2f636f696e6765636b6f)](https://packagist.org/packages/musheabdulhakim/coingecko) [![Latest Version](https://camo.githubusercontent.com/561c6445b518439136a022c240082d740b314fb029715f20703d74e3db47b46b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d75736865616264756c68616b696d2f636f696e6765636b6f)](https://packagist.org/packages/musheabdulhakim/coingecko) [![License](https://camo.githubusercontent.com/fd45cacb15aee9c30f4021476a139aca9fcb42f62c4fb06bdf9ba6dc86c3647d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d75736865616264756c68616b696d2f636f696e6765636b6f)](https://packagist.org/packages/musheabdulhakim/coingecko)

---

This package provides a wonderful **PHP API** client that allows you to interact with [CoinGecko Api](https://docs.coingecko.com/reference/introduction)

**This SDK** is a PHP &amp; Laravel Package, (Designed to help working with coingecko api easier and faster).

Requirement
-----------

[](#requirement)

> **Requires [Composer](https://getcomposer.org/)****Requires [PHP 8.2+](https://php.net/releases/)**

Installation
------------

[](#installation)

```
 composer require musheabdulhakim/coingecko
```

Basic usage
-----------

[](#basic-usage)

```
$coingecko = \MusheAbdulHakim\CoinGecko\CoinGecko::client('your-api-key');

//or

$coingecko = \MusheAbdulHakim\CoinGecko\CoinGecko::client('your-api-key','https://api.coingecko.com/api', 'v3');
```

### Example

[](#example)

```
$coingecko = \MusheAbdulHakim\CoinGecko\CoinGecko::client('your-api-key');
$ping = $coingecko->ping();

$pingTest = $ping->ping();

//or

$coingecko->pingServer();
```

### Configuration

[](#configuration)

Update api version, base url and api key

```
'COINGECKO_API_VERSION' => 'v3',

'COINGECKO_BASE_URI' => 'https://api.coingecko.com/api',

'COINGECKO_API_KEY' => 'xxxxxxxxxxxxxxxxxxxxxx',
```

### Ping

[](#ping)

#### [ping](https://www.coingecko.com/api/documentations/v3#/ping/get_ping)

[](#ping-1)

Check API server status

```
$ping = $coingecko->ping();
```

License
-------

[](#license)

`musheabdulhakim/coingecko` is released under the MIT License. See the bundled [LICENSE](./LICENSE) for details.

Contribution
------------

[](#contribution)

🧹 Keep a modern codebase with **php-cs-fixer**:

```
composer lint
```

🚀 Run the entire test suite:

```
composer test
```

Report all your issues [Here](https://github.com/MusheAbdulHakim/CoinGeckoApi/issues)

All your pull requests are welcome :).

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance41

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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

Every ~282 days

Total

4

Last Release

492d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.4.29

v1.0.2PHP ^8.2|^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/45583971540c90528204f4380926ed2e370ac89612aa194f71e4073abfdb78d0?d=identicon)[musheabdulhakim](/maintainers/musheabdulhakim)

---

Top Contributors

[![MusheAbdulHakim](https://avatars.githubusercontent.com/u/58814410?v=4)](https://github.com/MusheAbdulHakim "MusheAbdulHakim (75 commits)")

---

Tags

altcoinsbitcoin-apicoingeckocoingecko-apicoingecko-phpcryptocurrencylaravelphpsdksdk-phpphpapiclientrestcoingecko.comCoingecko

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/musheabdulhakim-coingecko/health.svg)

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

###  Alternatives

[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k22.6M232](/packages/openai-php-client)[mozex/anthropic-php

Anthropic PHP is a supercharged community-maintained PHP API client that allows you to interact with Anthropic API.

46365.1k13](/packages/mozex-anthropic-php)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

963.1M35](/packages/getbrevo-brevo-php)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)

PHPackages © 2026

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