PHP code example of franjsco / crypto-fear-greed-index
1. Go to this page and download the library: Download franjsco/crypto-fear-greed-index 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/ */
franjsco / crypto-fear-greed-index example snippets
use Franjsco\CryptoFearGreedIndex\Client;
$client = new Client();
$data = $client->getData();
[
"value" => "20",
"value_classification" => "Extreme Fear",
"timestamp" => "1632960000",
"time_until_update" => "28139",
]