PHP code example of nullx27 / easi

1. Go to this page and download the library: Download nullx27/easi 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/ */

    

nullx27 / easi example snippets



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

print $alliance->allianceName; // Friendly Probes


   
 'valid access token';
$characterId = 123456789;

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

print_r($wallet->data);

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

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

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