Using ptv-php with ptv.vic.gov.au

PHP integration

Install
composer require ptv-php
View route names and numbers for all routes
curl \
  http://timetableapi.ptv.vic.gov.au/v3/routes
List all ticket outlets
curl \
  http://timetableapi.ptv.vic.gov.au/v3/outlets
View all disruptions for all route types
curl \
  http://timetableapi.ptv.vic.gov.au/v3/disruptions
SDK on GitHub 📄 API Docs
SDK
ptv-php
PHP
API
ptv.vic.gov.au
ptv.vic.gov.au
At a glance
Language PHP
Endpoints26
Base URLhttp://timetableapi.ptv.vic.gov.au