PHPackages                             rensphilipsen/laravel-ns-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. rensphilipsen/laravel-ns-api

ActiveLibrary[API Development](/categories/api)

rensphilipsen/laravel-ns-api
============================

A Laravel wrapper for the Nederlandse Spoorwegen (NS) API

v1.0.4(3y ago)11.1kMITPHP

Since Oct 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/rensphilipsen/laravel-ns-api)[ Packagist](https://packagist.org/packages/rensphilipsen/laravel-ns-api)[ RSS](/packages/rensphilipsen-laravel-ns-api/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (7)Used By (0)

Laravel NS API
==============

[](#laravel-ns-api)

This package is a wrapper for the Nederlandse Spoorwegen (NS) API.

Installation
------------

[](#installation)

Install via composer

```
composer require rensphilipsen/laravel-ns-api

```

Configuration
-------------

[](#configuration)

Publish the configuration by running

```
php artisan vendor:publish --provider="RensPhilipsen\NSApi\NSApiServiceProvider" --tag="config"

```

Examples
--------

[](#examples)

### Get all stations

[](#get-all-stations)

To fetch all the NS stations:

```
    $api = new NSApi();

    // Optionally set a limit as first parameter, defaults to 0 which is all stations
    $api->getStations(32);

```

### Get departures by station code

[](#get-departures-by-station-code)

```
    $api = new NSApi();

    // The first parameter is the stations `code`.
    // The second parameter (optional) is the amount of departures/journeys. Defaults to 32.
    $api->getDeparturesByStationCode('ut', 32)

```

### Get arrivals by station code

[](#get-arrivals-by-station-code)

```
    $api = new NSApi();

    // The first parameter is the stations `code`.
    // The second parameter (optional) is the amount of arrivals/journeys. Defaults to 32.
    $api->getArrivalsByStationCode('ut', 32)

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~247 days

Total

5

Last Release

1110d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/702ee794a9dd8fd279e18601af29d8ecd47cb038a6680231d6a3f8ea992ca301?d=identicon)[rensphilipsen](/maintainers/rensphilipsen)

---

Top Contributors

[![rensphilipsen](https://avatars.githubusercontent.com/u/3344852?v=4)](https://github.com/rensphilipsen "rensphilipsen (13 commits)")

---

Tags

apilaravelnederlandse-spoorwegenwrapper-api

### Embed Badge

![Health badge](/badges/rensphilipsen-laravel-ns-api/health.svg)

```
[![Health](https://phpackages.com/badges/rensphilipsen-laravel-ns-api/health.svg)](https://phpackages.com/packages/rensphilipsen-laravel-ns-api)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M986](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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