igorsgm/tibia-data-api

A library that allows you to access TibiaData API from your Laravel application.

v1.0.1 2021-03-18 07:49 UTC

This package is auto-updated.

Last update: 2024-11-07 13:49:47 UTC


README

Laravel TibiaData API

An open source library that allows you to access TibiaData API from your Laravel app.

Latest Version on Packagist Build Status Quality Score Total Downloads

TibiaData API is a RESTful API providing information in JSON format containing information from Tibia’s official homepage tibia.com, so you can build your own small tools.

✨ Features

  • Characters: Get the pure information from characters of Tibia based on your character search.
  • Guilds: List all guilds of a certain world or get detailed information of a certain guild.
  • Highscore: List all highscores of a certain world and see who got the right skills to top the list.
  • Houses: List all houses in all the different worlds and towns of Tibia.
  • News: The latest 6 months of news and articles from tibia.com.
  • Worlds: List all worlds of Tibia or list all online players and more info of your favorite world.

1️⃣ Installation

You can install the package via composer:

composer require igorsgm/tibia-data-api

2️⃣ Usage

TibiaDataApi::characters()->get('Bobeek')
TibiaDataApi::highscores()->get('Antica', 'sword', 'all')
TibiaDataApi::houses()->get('Antica', 'Thais', 'houses')

// Guilds
TibiaDataApi::guild()->get('Red Rose')
TibiaDataApi::guilds()->get('Antica')

// Worlds
TibiaDataApi::worlds()->getList()
TibiaDataApi::worlds()->get('Antica')

// News
TibiaDataApi::news()->get(3560)
TibiaDataApi::news()->getLatestNews()
TibiaDataApi::news()->getNewstickers()

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.