PHP code example of deszczynskiprzemyslaw / tibiadata-api-client

1. Go to this page and download the library: Download deszczynskiprzemyslaw/tibiadata-api-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

deszczynskiprzemyslaw / tibiadata-api-client example snippets


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



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