rentberry / coinmarketcap-api
Coinmarketcap API PHP client
Installs: 57 701
Dependents: 0
Suggesters: 0
Security: 0
Stars: 30
Watchers: 5
Forks: 7
Open Issues: 2
Requires
- php: >=7.1
- ext-bcmath: @stable
- guzzlehttp/guzzle: ^6.3 || ^7.0
Requires (Dev)
- phpunit/phpunit: ^6.5
This package is auto-updated.
Last update: 2024-11-19 22:19:55 UTC
README
PHP client for CoinMarketCap JSON API
Installation
composer require rentberry/coinmarketcap-api
Usage
$client = new Rentberry\Coinmarketcap\Coinmarketcap(); $client->getTickers(); $client->getTicker('bitcoin'); $client->getExchangeRate('ethereum', 'USD'); $client->convertToFiat(10, 'ethereum', 'USD'); $client->convertToCrypto(10, 'USD', 'ethereum'); $client->getGlobal();
License
MIT. See LICENSE