PHPackages                             lsv/rejseplan-php-api - 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. lsv/rejseplan-php-api

ActiveLibrary[API Development](/categories/api)

lsv/rejseplan-php-api
=====================

PHP wrapper for Rejseplanen.dk API

4.0.2(4y ago)3831MITPHP ^8.0

Since Sep 12Compare

[ Source](https://github.com/lsv/rejseplan-php-api)[ Packagist](https://packagist.org/packages/lsv/rejseplan-php-api)[ RSS](/packages/lsv-rejseplan-php-api/feed)WikiDiscussions Synced yesterday

READMEChangelog (5)Dependencies (16)Versions (19)Used By (1)

Rejseplanen - PHP API
---------------------

[](#rejseplanen---php-api)

PHP wrapper for Rejseplanen.dk API

### Install

[](#install)

```
composer require lsv/rejseplan-php-api

# Add a PSR-18 client, fx
composer require symfony/http-client
# If you add another PSR18 client, then look below on how to use other PSR 18 clients
```

### Usage

[](#usage)

```
$client = new \Symfony\Component\HttpClient\HttpClient(); // Any PSR-18 http client can be used
\Lsv\Rejseplan\AbstractRequest::setClient($client);

$location = '123'; // Location should be either a string, integer or a StopLocation
$board = new \Lsv\Rejseplan\ArrivalBoard($location);
$response = $board->request();
// $response is now a ArrivalBoardResponse
```

See [ArrivalBoard](docs/ArrivalBoard.md) for more

### More usages

[](#more-usages)

RequestDescription[Client](docs/Client.md)Set HTTP client[ArrivalBoard](docs/ArrivalBoard.md)To get arrival board for a station[DepartureBoard](docs/DepartureBoard.md)To get departure board for a station[Journey](docs/Journey.md)This will get you a full journey report for a vehicle[Location](docs/Location.md)With this you can find stops, POI or addresses from a user input[NearbyStops](docs/NearbyStops.md)This will deliver all stops within a radius of a given coordinate.[Trip](docs/Trip.md)With this you can calculate a trip### License

[](#license)

The MIT License (MIT)

Copyright (c) 2019 Martin Aarhof

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 93.8% 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.

###  Release Activity

Cadence

Every ~122 days

Recently: every ~337 days

Total

17

Last Release

1617d ago

Major Versions

1.0.10 → 2.02018-05-17

2.0.1 → 3.02019-10-05

3.0 → 4.02022-01-19

PHP version history (4 changes)1.0.0PHP ^5.6|^7.0

2.0PHP ^7.2

3.0PHP ^7.3

4.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ff9304e6a7caa208d631a1529240a97dff2f47dadde7bff153e8a90818047168?d=identicon)[lsv](/maintainers/lsv)

---

Top Contributors

[![lsv](https://avatars.githubusercontent.com/u/20708?v=4)](https://github.com/lsv "lsv (45 commits)")[![niclashedam](https://avatars.githubusercontent.com/u/770169?v=4)](https://github.com/niclashedam "niclashedam (3 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lsv-rejseplan-php-api/health.svg)

```
[![Health](https://phpackages.com/badges/lsv-rejseplan-php-api/health.svg)](https://phpackages.com/packages/lsv-rejseplan-php-api)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M725](/packages/sylius-sylius)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M554](/packages/shopware-core)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k12](/packages/2lenet-crudit-bundle)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k51.2M330](/packages/api-platform-core)[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)

PHPackages © 2026

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