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 3w 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

34

—

LowBetter than 75% of packages

Maintenance38

Infrequent updates — may be unmaintained

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

547d ago

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

v1.0.2PHP ^8.2|^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/58814410?v=4)[Mushe Abdul-Hakim](/maintainers/musheabdulhakim)[@MusheAbdulHakim](https://github.com/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

[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)[openai-php/client

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

5.8k28.0M318](/packages/openai-php-client)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

1003.9M50](/packages/getbrevo-brevo-php)[anthropic-ai/sdk

Anthropic PHP SDK

163583.3k17](/packages/anthropic-ai-sdk)[deeplcom/deepl-php

Official DeepL API Client Library

2607.3M114](/packages/deeplcom-deepl-php)[n1ebieski/ksef-php-client

PHP API client that allows you to interact with the API Krajowego Systemu e-Faktur

9067.8k](/packages/n1ebieski-ksef-php-client)

PHPackages © 2026

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