r3bers / cmcap-api
PHP client for CoinMarketCap API
dev-master
2021-05-13 18:47 UTC
Requires
- php: >=7.3
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- phpunit/phpunit: ^9.2
This package is auto-updated.
Last update: 2024-05-14 01:27:45 UTC
README
A simple PHP wrapper for CoinMarketCap API v1.
Requirements
- PHP >= 7.3
- ext-json
- CoinMarketCap account, API Key
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.