tcgdex/sdk
最新稳定版本:2.2.0
Composer 安装命令:
composer require tcgdex/sdk
包简介
PHP SDK to communicate with the TCGdex API
README 文档
README
TCGdex PHP SDK
This is the SDK used to communicate with the Open source TCGdex API using PHP
Full API/SDK documentation in progress here
Getting Started
install the SDK using:
composer require tcgdex/sdk # if you have no PSR 16/17/18 implementations add the following packages composer require symfony/cache nyholm/psr7 kriswallsmith/buzz # they will be automaticly setup for the project # symfony/cache === PSR16 # nyholm/psr7 === PSR17 # kriswallsmith/buzz === PSR18
Quick usage
use TCGdex\TCGdex; // Is you are using your own PSRs implementations add theses before loading the class TCGdex::$cache = /* PSR16 CacheInterface */; TCGdex::$requestFactory = /* PSR17 RequestFactoryInterface */; TCGdex::$responseFactory = /* PSR17 ResponseFactoryInterface */; TCGdex::$client = /* PSR18 ClientInterface */; // initialize the SDK with the language $tcgdex = new TCGdex("en"); // Fetch the cards ! $card = $tcgdex->fetchCard('1', 'Sword & Shield');
统计信息
- 总下载量: 1.54k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-06-21