Location: PHPKode > scripts > PSN Trophy Data > psn-trophy-data/Example.php
<?php
require_once('class.PSNCard.php');

$psnUsername = 'xnowandtheworldx';
$psn = new PSNCard($psnUsername);
$percentLeft = (100 - $psn->progress);
echo $psn->bronze,' Bronze Trophies<br/>';
echo $psn->silver,' Silver Trophies<br/>';
echo $psn->gold,' Gold Trophies<br/>';
echo $psn->platinum,' Platinum Trophies<br/>';
echo 'Level: ',$psn->level,'<br/>';
echo 'Only ',$percentLeft,'% left to your next level <br/>';
echo 'You have a total of ',$psn->total_trophies,' trophies';
Return current item: PSN Trophy Data