r3bers/cmcap-api

PHP client for CoinMarketCap API

dev-master 2021-05-13 18:47 UTC

This package is auto-updated.

Last update: 2024-05-14 01:27:45 UTC


README

Build Status Scrutinizer Code Quality Test Coverage Maintainability GitHub license Packagist

A simple PHP wrapper for CoinMarketCap API v1.

Requirements

Installation

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.

Basic usage

Example

use R3bers\CMCapApi\CMCapClient;

$client = new CMCapClient();
$client->setCredential('API_KEY');

$data = $client->cryptocurrency()->map();

Available methods

Further Information

Please, check the CoinMarketCap site documentation for further information about API.

License

r3bers/cmcap-api is released under the MIT License. See the bundled LICENSE for details.