PHP code example of evecommander / esi-client-php
1. Go to this page and download the library: Download evecommander/esi-client-php 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/ */
evecommander / esi-client-php example snippets
Instance = new Swagger\Client\Api\AllianceApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$datasource = "tranquility"; // string | The server name you would like data from
$if_none_match = "if_none_match_example"; // string | ETag from a previous request. A 304 will be returned if this matches the current ETag
try {
$result = $apiInstance->getAlliances($datasource, $if_none_match);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AllianceApi->getAlliances: ', $e->getMessage(), PHP_EOL;
}