An unofficial API for the BVG (Berlin Public Transportation Services) for PHP.
This package can be found on Packagist and is best loaded using Composer.
$ composer require mkerix/php-bvg
You can search for the ID of a station using a search term:
$stations = BVGApi\Station::getStations('alexanderplatz');
With the ID you can get the departures starting at a given point in time, which is symbolized by a Carbon object:
$time = \Carbon\Carbon::create(2016, 3, 21, 12, 0, 0, 'Europe/Berlin');
$departures = BVGApi\Station::getDepartures(9100003, $time);