franjsco/crypto-fear-greed-index

A PHP package to fetch Bitcoin Crypto Fear and Greed Index data from alternative.me

v0.1.0 2021-09-30 15:16 UTC

This package is auto-updated.

Last update: 2024-09-29 05:56:57 UTC


README

A PHP package to fetch Bitcoin Crypto Fear and Greed Index data from alternative.me

Requirements

  • PHP >= 7.2
  • ext-json

Installation

composer require franjsco/crypto-fear-greed-index

Example

use Franjsco\CryptoFearGreedIndex\Client;

$client = new Client();

$data = $client->getData();

Data example:

[
  "value" => "20",
  "value_classification" => "Extreme Fear",
  "timestamp" => "1632960000",
  "time_until_update" => "28139",
]