A PHP package to fetch Bitcoin Crypto Fear and Greed Index data from alternative.me
- PHP >= 7.2
- ext-json
composer require franjsco/crypto-fear-greed-index
use Franjsco\CryptoFearGreedIndex\Client;
$client = new Client();
$data = $client->getData();
Data example:
[
"value" => "20",
"value_classification" => "Extreme Fear",
"timestamp" => "1632960000",
"time_until_update" => "28139",
]