PHP

PHP SDK

官方PHP SDK。遵循PSR规范,PHP 8.1+。

安装
$ composer require tcg-price-lookup/tcglookup

主要功能

  • PHP 8.1+ support
  • Guzzle HTTP client
  • PSR-4 autoloading
  • Typed exception hierarchy
使用示例
use TCGPriceLookup\TCGLookup;

$tcg = new TCGLookup(apiKey: 'your-api-key');

$results = $tcg->search('charizard');
print_r($results);
GitHub →

开始使用 TCG API 构建应用

获取免费 API 密钥,几分钟内即可开始查询卡牌价格。