utopictown / coinmarketcap-api-wrapper
PHP wrapper for CoinMarketCap API.
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/utopictown/coinmarketcap-api-wrapper
Requires
- php: >=4.0.2
Requires (Dev)
- phpunit/phpunit: ^9.4@dev
- vlucas/phpdotenv: ^5.1@dev
This package is auto-updated.
Last update: 2025-11-17 21:38:19 UTC
README
PHP wrapper for CoinMarketCap API
currently support only for cryptocurrency API https://coinmarketcap.com/api/documentation/v1/#tag/cryptocurrency
INSTALLATION
composer require utopictown/coinmarketcap-api-wrapper
USAGE
use Utopictown\CMCWrapper\CMCWrapper;
$cmc = new CMCWrapper(YOUR_API_KEY);
get list of all active cryptocurrencies with latest market data.
$cmc->getCryptocurrencyListingsLatest(['convert' => 'IDR']);
for more params please see https://coinmarketcap.com/api/documentation/v1/
Available Hook
- getCryptocurrencyMap
- getCryptocurrencyInfo
- getCryptocurrencyListingsHistorical
- getCryptocurrencyListingsLatest
- getCryptocurrencyMarketPairs
- getCryptocurrencyOHLCVHistorical
- getCryptocurrencyOHLCVLatest
- getCryptocurrencyPerformanceStats
- getCryptocurrencyQuotesHistorical
- getCryptocurrencyQuotesLatest