franjsco/crypto-fear-greed-index

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

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/franjsco/crypto-fear-greed-index

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

This package is auto-updated.

Last update: 2025-11-29 03:04:45 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",
]