rentberry / coinmarketcap-api
Coinmarketcap API PHP 客户端
1.0.1
2021-03-02 05:42 UTC
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-09-19 21:59:49 UTC
README
用于 CoinMarketCap JSON API 的 PHP 客户端
安装
composer require rentberry/coinmarketcap-api
使用
$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();
许可证
MIT. 查看 LICENSE