A PHP client for the unpublished API for Neptune's Pride II: Triton (https://np.ironhelmet.com/)
require "phpTriton/client.php";
$client = new TritonClient($alias, $password);
if($client->authenticate()){
    $game = $client->GetGame($game_id);
    $universe = $game->GetFullUniverse();
}- authenticate()- authenticates the player credentials, return- trueon success
- GetGame($game_id)- returns- TritonGameobject
- GetServer()- returns- TritonServerobject
All methods return decoded JSON arrays.
- GetPlayer()- returns the player information
- GetOpenGames()- returns the open game information
All methods return decoded JSON arrays.
- GetFullUniverse()- returns game universe information
- GetIntel()- returns intel statistics
- GetUnreadCount()- returns unread message counts
- GetPlayerAchievements()- returns game players achievement information
- GetDiplomacyMessages($count, $offset = 0)- returns diplomacy messages
- GetEventMessages($count, $offset = 0)- returns event messages