PHP code example of xivdata / xivapi-laravel
1. Go to this page and download the library: Download xivdata/xivapi-laravel 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/ */
xivdata / xivapi-laravel example snippets
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);
}
}