Last active
August 29, 2015 13:56
-
-
Save ppetermann/9345273 to your computer and use it in GitHub Desktop.
fetch all alliance descriptions with perry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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