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
Requires
- php: ^7.3 || ^8.0
- ext-json: *
- guzzlehttp/guzzle: ^6.0|^7.0
- illuminate/support: ^6.0|^7.0|^8.0|^9.0
Requires (Dev)
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.0
- squizlabs/php_codesniffer: ^3.5
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.
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
- Tibia and TibiaME are trademarks of CipSoft GmbH. The official website for Tibia is Tibia.com
- TibiaData API
- Simivar
- Igor Moraes
License
The MIT License (MIT). Please see License File for more information.