Skip to content

franjsco/crypto-fear-greed-index-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crypto-fear-greed-index

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",
]