glassnode-php 是一个非官方的、框架无关的 PHP 8.1+ SDK,用于 Glassnode Basic API,提供类型化资源、通用指标 API、Laravel 集成以及自动重试和速率限制处理。

Stars

5

7 天增长

暂无数据

Fork 数

0

开放 Issue

0

开源协议

MIT

最近更新

2026-07-30

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它将 Glassnode 文档中的整个指标接口封装为可发现的 PHP 方法调用,减少 HTTP 样板代码,并提供元数据发现、不可变配置、PSR-18 支持和感知速率限制的重试等生产级特性。

适合谁使用

  • 需要处理链上数据的 PHP 开发者
  • 构建加密货币仪表盘的 Laravel 开发者
  • 在 PHP 中获取 Glassnode 指标的量化/分析团队
  • 使用 PSR-18 HTTP 客户端的 Symfony 或框架无关 PHP 项目

典型使用场景

  • 获取 BTC/ETH 的市场指标,如价格、OHLC、MVRV 和已实现市值
  • 通过活跃地址、算力和供应量监控网络健康状况
  • 通过元数据 API 在运行时发现指标参数和可用资产
  • 使用门面/依赖注入和发布配置构建 Laravel 仪表盘

项目优势

  • 25 个类型化分类资源覆盖全部文档化端点类别,并配有通用 API 以支持未来指标
  • 对 429 自动重试,支持 x-rate-limit-reset 和指数退避;异常层次丰富
  • 核心框架无关,提供一流的 Laravel 桥接,兼容 PSR-18,并内置零依赖 cURL 传输
  • 默认使用基于请求头的认证,配置不可变,增强 API 密钥安全和请求一致性

使用前须知

  • 非官方 SDK,与 Glassnode 无关联或未经其认可
  • 需要 Glassnode 账户/API 密钥;每次请求都会消耗数据积分
  • 要求 PHP 8.1+ 及 ext-curl/ext-json;某些新指标在类型化包装更新前可能只能通过通用 get() 调用

README 快速开始

Installation

项目描述

Unofficial PHP 8.1+ SDK for the Glassnode Basic API. Framework-agnostic with a first-class Laravel bridge. 25 typed category resources, generic metric API, runtime metadata discovery, bulk endpoints, automatic 429 retry with backoff, header auth, and a rich exception hierarchy. Not affiliated with Glassnode.

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

7-e1even
精选
7-e1even GitHub avatar

learn-agent

A collection of notes on building coding agents, derived from the production development of the desktop agent Reina, with each mechanism simplified into a zero-dependency, single-file Node.js demo.

AI 与机器学习大语言模型
218
xuchonglang
精选
xuchonglang GitHub avatar

investing-for-beginners

A structured investing guide for Chinese beginners covering US stocks, options, and cryptocurrency, with focus on foundational concepts and risk awareness.

区块链与 Web3
2,739
deerwork-ai
精选
deerwork-ai GitHub avatar

deer-workflow

An open-source Dynamic Workflow runtime that combines deterministic TypeScript orchestration with replaceable Agent runtimes.

AI 与机器学习大语言模型
312