xivdata / xivapi-laravel
A Laravel SDK for xivapi.com
Fund package maintenance!
Patreon
Requires
- php: >=7.3
Requires (Dev)
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2025-04-23 07:03:24 UTC
README
This provides a very simple client to interact with the XIVAPI and obtain dynamic objects in return.
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