PHPackages                             traewelling/db-rest-mappings - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. traewelling/db-rest-mappings

ActiveLibrary[API Development](/categories/api)

traewelling/db-rest-mappings
============================

This package provides a simple data structure for the REST responses of https://v5.db.transport.rest/.

12PHP

Since Jan 8Pushed 1y ago2 watchersCompare

[ Source](https://github.com/Traewelling/db-rest-mappings)[ Packagist](https://packagist.org/packages/traewelling/db-rest-mappings)[ RSS](/packages/traewelling-db-rest-mappings/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

DB Rest Mappings
================

[](#db-rest-mappings)

This package is a **very simple** implementation of the datatypes used in  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.

Usage
-----

[](#usage)

```
// 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);
}
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ac58b3aec3dadbf487c45d852e5df107a3d350812f47dc7e658f8abefd68c4a1?d=identicon)[HerrLevin\_](/maintainers/HerrLevin_)

![](https://avatars.githubusercontent.com/u/19890220?v=4)[Träwelling](/maintainers/traewelling)[@Traewelling](https://github.com/Traewelling)

![](https://avatars.githubusercontent.com/u/4103693?v=4)[Kris](/maintainers/MrKrisKrisu)[@MrKrisKrisu](https://github.com/MrKrisKrisu)

---

Top Contributors

[![HerrLevin](https://avatars.githubusercontent.com/u/1267894?v=4)](https://github.com/HerrLevin "HerrLevin (18 commits)")

### Embed Badge

![Health badge](/badges/traewelling-db-rest-mappings/health.svg)

```
[![Health](https://phpackages.com/badges/traewelling-db-rest-mappings/health.svg)](https://phpackages.com/packages/traewelling-db-rest-mappings)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
