Conduit - EVE Online ESI Client
Requirements
PHP 7.1 or later, (*1)
Installation
Use composer to install:, (*2)
composer require nullx27/conduit
Getting started
Conduit is a easy to use minimalistic ESI APi client., (*3)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api = new \Conduit\Conduit();
$api->alliances(434243723)->get();
Authenticated ESI calls, (*4)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$clientId = 'your-client-id';
$clientSecret = 'your-client-secrete';
$refreshToken = 'user-refresh-token';
$auth = new \Conduit\Authentication($clientId, $clientSecret, $refreshToken);
$api = new \Conduit\Conduit($auth);
Conduit requests its own access tokens and renews them when they expire., (*5)
Configuration
Conduit can use any PSR-6 compatible caching library to stay in line with CCP request guidelines, (*6)
<?php
$api = new \Conduit\Conduit();
$api->getConfiguration()->setCache($yourCacheInstance);
You can set a different datasource for your esi requests. The default is 'tranquility'., (*7)
<?php
$api = new \Conduit\Conduit();
$api->getConfiguration()->setDatasource('singularity');
Bug repots
Please use Github Issues for bug reports., (*8)