Looking to hire Laravel developers? Try LaraJobs

xivapi-laravel maintained by xivdata

Description
A Laravel SDK for xivapi.com
Author
Last update
2020/12/22 22:10 (dev-master)
License
Downloads
16
Tags

Comments
comments powered by Disqus

XIVAPI Laravel Client

This provides a very simple client to interact with the XIVAPI and obtain dynamic objects in return.

Packagist Downloads Build

Getting Started

This library requires PHP 7.3+

Install vis composer: https://packagist.org/packages/xivdata/xivapi-laravel

  • composer require xivdata/xivapi-laravel

What it does

The xivapi-laravel package is a very simple libary to access XIVAPI.

Usage Example

<?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);
    }
}

Setting your key if you have one

You can set the environment variable: XIVAPI_KEY

Documentation

You can find a Documentation on our GitHub Page:
xivapi-laravel Documentation