Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

mKeRix/php-bvg

Repository files navigation

php-bvg

Build Status Coverage Status Total Downloads Latest Stable Version Latest Unstable Version License

An unofficial API for the BVG (Berlin Public Transportation Services) for PHP.

Installation

This package can be found on Packagist and is best loaded using Composer.

$ composer require mkerix/php-bvg

Usage

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);

About

An unofficial API for the BVG (Berlin Public Transportation Services) for PHP.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages