There are lots of operations involving a user's profile that can be performed. Remember to request the correct scopes beforehand.
$me = $api->me();
echo $me->display_name;
$user = $api->getUser('USER_ID');
echo $user->display_name;
Please see the method reference for more available options for each method.