Sample PHP code for consuming the Public Transport Victoria API. Official documentation can be found here:
http://www.data.vic.gov.au/raw_data/ptv-timetable-api/6056
And further detail about using it:
http://wongm.com/2014/03/consuming-ptv-transport-data-api-from-php/
You will need to update the $key and $developerId values with your credentials - to get one, email [email protected] with subject "PTV Timetable API - request for key".