A simple PHP wrapper for CoinMarketCap API v1.
- PHP >= 7.3
- ext-json
- CoinMarketCap account, API Key
The preferred way to install this extension is through composer.
Either run
$ composer require r3bers/cmcap-api
or add
"r3bers/cmcap-api" : "^1.0"
to require the section of your application's composer.json
file.
use R3bers\CMCapApi\CMCapClient;
$client = new CMCapClient();
$client->setCredential('API_KEY');
$data = $client->cryptocurrency()->map();
Please, check the CoinMarketCap site documentation for further information about API.
r3bers/cmcap-api
is released under the MIT License. See the bundled LICENSE for details.