https://github.com/rentberry/coinmarketcap-api-php
PHP client for CoinMarketCap JSON API
https://github.com/rentberry/coinmarketcap-api-php
blockchain coinmarketcap-api php sdk
Last synced: 10 months ago
JSON representation
PHP client for CoinMarketCap JSON API
- Host: GitHub
- URL: https://github.com/rentberry/coinmarketcap-api-php
- Owner: Rentberry
- License: mit
- Created: 2018-01-29T09:38:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T18:44:19.000Z (about 3 years ago)
- Last Synced: 2025-03-22T21:51:08.268Z (over 1 year ago)
- Topics: blockchain, coinmarketcap-api, php, sdk
- Language: PHP
- Homepage:
- Size: 36.1 KB
- Stars: 29
- Watchers: 4
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Coinmarketcap.com API Client
---
[](https://travis-ci.org/Rentberry/coinmarketcap-api-php)
[](https://packagist.org/packages/rentberry/coinmarketcap-api)
[](https://packagist.org/packages/rentberry/coinmarketcap-api)
[](https://packagist.org/packages/rentberry/coinmarketcap-api)
PHP client for [CoinMarketCap JSON API](https://coinmarketcap.com/api/)
# Installation
```bash
composer require rentberry/coinmarketcap-api
```
# Usage
```php
$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](https://github.com/rentberry/coinmarketcap-api-php/blob/master/LICENSE)