This provides a very simple client to interact with the XIVAPI and obtain dynamic objects in return.
This library requires PHP 7.3+
Install vis composer: https://packagist.org/packages/xivdata/xivapi-laravel
composer require xivdata/xivapi-laravel
The xivapi-laravel
package is a very simple libary to access XIVAPI.
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use XIVAPI\XIVAPI;
class Example extends Controller
{
public function foo()
{
$api = new XIVAPI();
$result = $api->character->get('9065567', [$data = 'MIMO']);
dd($result);
}
}
You can set the environment variable: XIVAPI_KEY
You can find a Documentation on our GitHub Page:
xivapi-laravel Documentation