Evecorplogo

Library.png
evecorplogo - Visit evecorplogo - Other Libraries


Contents

Project Details

Project.png
Name evecorplogo
Website.png
Websitehttp://evecorplogo.code-box.sk/
User.png
MaintainerLumy
License.png
LicenseGPL
OS.png
OSPlatform independent
Page white code red.png
LanguagePHP


Description

Function allows you to create Corporation Logo based API Corporation Sheet. Function accepts data in form of raw XML string, SimpleXMLElment object or array.

Installation

Function requires logo image pack. Either set EVE_CORPLOGO_GLYPHDIR to pack directory, or name directory "corplogos" and put it to same location as library. No other installation required.

Requirements

Library has been developed and tested in PHP 5.2. Library requires GD module.

Documentation

Documentation is in form of phpdoc within library.

Example

The following is a simple example how to display logo.

<?php
define('EVE_CORPLOGO_GLYPHDIR', "wherever/you/put/corplogos/");

require('evecorplogo.php');

//use your favorite [[API|api]] library to fetch xml;
$xml = CorpCorporationSheet($userID, $apiKey, $characterID);

//set header for direct output
header('Content-Type: image/png');
//and put image to output
echo EVECorpLogo($xml, 64);
//but honestly, i would recomend to save image first

Links