simivar/tibiadata-api
Composer 安装命令:
composer require simivar/tibiadata-api
包简介
TibiaData API is a open source library that allows you to access TibiaData API from your PHP application. Supports every resource. Follows Semver and TibiaData API versioning.
README 文档
README
TibiaData API is a open source library that allows you to access TibiaData API from your PHP application.
Getting started
TibiaData API is avialable via Composer. It uses HTTPlug abstraction so you are free to choose any HTTP Client you want that depends on php-http/client-implementation virutal package.
composer require simivar/tibiadata-api php-http/message php-http/guzzle6-adapter
Usage
Note: This version of TibiaData API requires PHP version of 7.1 or higher.
You can use every resource available with classes from Resources namespace. You can create main TibiaData object and use getters or create every object on your own.
require_once('vendor/autoload.php'); $tibiaData = new \TibiaDataApi\TibiaData($authentication); $upvoteAnnotation = $tibiaData->getCharactersResoure()->get( 'Simivar' );
Versioning
Created using Semver. All minor and patch updates are backwards compatibile.
Also, it strictly follows TibiaData API versioning. Version 2.0 of library supports v2 of TibiaData API.
License
Please see the license file for more information.
统计信息
- 总下载量: 32
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-05-18