This package is a very simple implementation of the datatypes used in https://v5.db.transport.rest/ and the corresponding API.
Warning
This is in very early development. Code might change without notice in the same version. Use at your own risk.
// get your departure board
$responseJson = $client->get('/stops/8000191/departures', $query);
$data = json_decode($responseJson, true);
// parse into a DepartureBoard
$hydrator = new \DRM\Hydrator\DbRestHydrator();
foreach ($data as $key => $value) {
$data[$key] = $hydrator->hydrate($value, \DRM\Dto\Departure::class);
}