PHP code example of mkerix / php-bvg
1. Go to this page and download the library: Download mkerix/php-bvg library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mkerix / php-bvg example snippets
$stations = BVGApi\Station::getStations('alexanderplatz');
$time = \Carbon\Carbon::create(2016, 3, 21, 12, 0, 0, 'Europe/Berlin');
$departures = BVGApi\Station::getDepartures(9100003, $time);
$ composer