2017 © Pedro Peláez
 

library easi

PHP Interface for EVE Onlines ESI Api

image

nullx27/easi

PHP Interface for EVE Onlines ESI Api

  • Saturday, January 13, 2018
  • by nullx27
  • Repository
  • 1 Watchers
  • 2 Stars
  • 82 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 3 Open issues
  • 4 Versions
  • 8 % Grown

The README.md

THIS LIBRARY IS NO LONGER MAINTAINED

Easi - A Eve Online ESI Api wrapper

StyleCI, (*1)

Requirements

PHP 7.0 or later, (*2)

Installation

Use composer to install:, (*3)

composer require nullx27/easi

Getting started

<?php

require_once(__DIR__ . '/vendor/autoload.php');

$easi = new \nullx27\Easi\Easi();
$alliance = $easi->alliance->getAllianceById(99006112);

print $alliance->allianceName; // Friendly Probes

To use authenticated ESI calls please provide a valid access token, (*4)

<?php

require_once(__DIR__ . '/vendor/autoload.php');

$token = 'valid access token';
$characterId = 123456789;

$easi = new \nullx27\Easi\Easi($token);
$wallet = $easi->wallet->getCharacterWallet($characterId);

print_r($wallet->data);

For a full list of all available endpoints and methods see here

Configuration

Easi can use any PSR-16 compatible caching libary to stay in line with CCP request guidelines, (*5)

$easi = new \nullx27\Easi\Easi();
$easi->getConfig()->setCache($yourCacheInstance);

The same works with PSR-3 compatible Loggers:, (*6)

$easi = new \nullx27\Easi\Easi();
$easi->getConfig()->setLogger($yourLoggerInstance);

You can set a different datasource for your esi requests. The default is 'tranquility'., (*7)

$easi = new \nullx27\Easi\Easi();
$easi->getConfig()->setDatasource('singularity'); 

Bug repots

Please use Github Issues for bug reports., (*8)

The Versions

13/01 2018
27/03 2017

1.0

1.0.0.0

PHP Interface for EVE Onlines ESI Api

  Sources   Download

MIT

The Requires

 

The Development Requires

by Andre Peiffer

api php lib esi eve-online