PHP code example of loeken / cryptocompare-api-php-wrapper

1. Go to this page and download the library: Download loeken/cryptocompare-api-php-wrapper library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

loeken / cryptocompare-api-php-wrapper example snippets



yptocomparePrice = new Cryptocompare\Price();
$example1 = $cryptocomparePrice->getSingleSymbolPriceEndpoint("true","BTC","USD","CCCAGG","false");
print_r($example1);



yptocomparePrice = new Cryptocompare\Price();
$cryptocomparePrice->setApiKey("yourapikeyhere");
$example1 = $cryptocomparePrice->getSingleSymbolPriceEndpoint("true","BTC","USD","CCCAGG","false");
print_r($example1);

composer
{
  "cryptocompare-api-php-wrapper": "dev-master"
  }
}
composer
    "loeken/cryptocompare-api-php-wrapper": "dev-master",
bash
php composer.phar update