PHPackages                             construct-blue/hafas-client-php - 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. construct-blue/hafas-client-php

ActiveLibrary[API Development](/categories/api)

construct-blue/hafas-client-php
===============================

PHP library for HAFAS public transport APIs (forked from mrkriskrisu/hafas-client-php).

044PHP

Since Jun 22Pushed 3y agoCompare

[ Source](https://github.com/construct-blue/hafas-client-php)[ Packagist](https://packagist.org/packages/construct-blue/hafas-client-php)[ RSS](/packages/construct-blue-hafas-client-php/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Hafas Client for PHP
====================

[](#hafas-client-for-php)

[![PHPUnit](https://github.com/MrKrisKrisu/hafas-client-php/actions/workflows/phpunit.yml/badge.svg)](https://github.com/MrKrisKrisu/hafas-client-php/actions/workflows/phpunit.yml)[![Codacy Badge](https://camo.githubusercontent.com/13ec1c00e823f6fbcaf6e812e707116d31147dd0e485e1f9d412dc47e404bfb3/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3538316566646239333065373438376439396564623663663436346261393664)](https://www.codacy.com/gh/MrKrisKrisu/hafas-client-php/dashboard?utm_source=github.com&utm_medium=referral&utm_content=MrKrisKrisu/hafas-client-php&utm_campaign=Badge_Grade)[![Gitmoji](https://camo.githubusercontent.com/c93f2672fae073162950404b6f9d6e92615f1701010e6fb43a871bde024db7ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6769746d6f6a692d2532302546302539462539382539432532302546302539462539382538442d4646444436372e737667)](https://gitmoji.dev)[![License](https://camo.githubusercontent.com/3834fb435b77ee7c2f0bc316fbb3cbb989e61477a9d9c216d8f4ad4495e8d973/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4d724b7269734b726973752f68616661732d636c69656e742d706870)](https://camo.githubusercontent.com/3834fb435b77ee7c2f0bc316fbb3cbb989e61477a9d9c216d8f4ad4495e8d973/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4d724b7269734b726973752f68616661732d636c69656e742d706870)

Installation\*\*
----------------

[](#installation)

```
composer require mrkriskrisu/hafas-client-php
```

> ⚠️ This library is just being developed and structured. With each version the structure will change. So use this library with care and specify an exact version in your composer.json (don't use **^**0.x!) until it reaches version 1.

Features
--------

[](#features)

- Fetch [next departures](https://github.com/MrKrisKrisu/hafas-client-php/blob/main/examples/FetchDepartures.php) of a station
- Fetch [next arrivals](https://github.com/MrKrisKrisu/hafas-client-php/blob/main/examples/FetchArrivals.php) of a station
- Fetch [locations](https://github.com/MrKrisKrisu/hafas-client-php/blob/main/examples/FetchLocation.php)
- Fetch [journeys](https://github.com/MrKrisKrisu/hafas-client-php/blob/main/examples/FetchJourney.php)
- Fetch [nearby stops](https://github.com/MrKrisKrisu/hafas-client-php/blob/main/examples/FetchNearby.php)

Related
-------

[](#related)

- [`hafas-client`](https://github.com/public-transport/hafas-client) – JavaScript client for HAFAS public transport APIs.
- [`db-hafas`](https://github.com/public-transport/db-hafas) – JavaScript client for the Deutsche Bahn HAFAS API.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 55.6% 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://avatars.githubusercontent.com/u/64379246?v=4)[Robert Kleinschuster](/maintainers/robertkleinschuster)[@robertkleinschuster](https://github.com/robertkleinschuster)

---

Top Contributors

[![MrKrisKrisu](https://avatars.githubusercontent.com/u/4103693?v=4)](https://github.com/MrKrisKrisu "MrKrisKrisu (35 commits)")[![robertkleinschuster](https://avatars.githubusercontent.com/u/64379246?v=4)](https://github.com/robertkleinschuster "robertkleinschuster (28 commits)")

### Embed Badge

![Health badge](/badges/construct-blue-hafas-client-php/health.svg)

```
[![Health](https://phpackages.com/badges/construct-blue-hafas-client-php/health.svg)](https://phpackages.com/packages/construct-blue-hafas-client-php)
```

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