Skip to content

Instantly share code, notes, and snippets.

@ppetermann
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ppetermann/9345273 to your computer and use it in GitHub Desktop.
Save ppetermann/9345273 to your computer and use it in GitHub Desktop.
fetch all alliance descriptions with perry
<?php
require_once 'vendor/autoload.php';
use Perry\Perry;
$alliancelist = Perry::fromUrl("http://public-crest.eveonline.com/alliances/");
do {
foreach ($alliancelist->items as $key => $allianceSmall) {
$reference = $allianceSmall->href;
$fullAlliance = $reference();
var_dump($fullAlliance);
}
} while (isset($alliancelist->next) && $alliancelist = $alliancelist->next());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment