a php function to create passes for Apple Passbook