deszczynskiprzemyslaw/tibiadata-api-client

tibiadata-api-client 由 Przemyslaw Deszczynski 开发

v1.0.0 2022-06-24 16:33 UTC

This package is auto-updated.

Last update: 2024-09-29 06:14:49 UTC


README

Packagist Latest Stable Version Total Downloads

Tibiadata API / Tibia.com 网站上的 API

API 文档

https://api.tibiadata.com
https://docs.tibiadata.com/

安装

composer require deszczynskiprzemyslaw/tibiadata-api-client

支持的版本

方法

character(string $name): Characters
creature(string $race): Creature
creatures(): Creatures
fansites(): Fansites
guild(string $name): Guilds
guilds(string $world): Guilds
highscores(string $world, string $category, string $vocation): Highscores
house(string $world, int $houseId): House
houses(string $world, string $town): Houses
killStatistics(string $world): Killstatistics
newsArchive(): News
newsArchiveWithDaysFilter(int $days): News
newsId(int $news_id): News
newsLatest(): News
newsNewsticker(): News
spell(string $spell_id): Spells
spells(): Spells
world(string $name): Worlds
worlds(): Worlds

使用方法

<?php

require_once './vendor/autoload.php';

$client = new TibiaDataApi\TibiaDataApiClient;
$response = $client->character('Goraca');
echo $response->character->name // Goraca