Download the PHP package rensphilipsen/laravel-ns-api without Composer
On this page you can find all versions of the php package rensphilipsen/laravel-ns-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download rensphilipsen/laravel-ns-api
More information about rensphilipsen/laravel-ns-api
Files in rensphilipsen/laravel-ns-api
Download rensphilipsen/laravel-ns-api
More information about rensphilipsen/laravel-ns-api
Files in rensphilipsen/laravel-ns-api
Vendor rensphilipsen
Package laravel-ns-api
Short Description A Laravel wrapper for the Nederlandse Spoorwegen (NS) API
License MIT
Package laravel-ns-api
Short Description A Laravel wrapper for the Nederlandse Spoorwegen (NS) API
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-ns-api
Laravel NS API
Laravel wrapper for Nederlandse Spoorwegen APIs.
Compatibility
- PHP:
^8.1(including PHP 8.5) - Laravel / Illuminate Support:
^10.0 || ^11.0 || ^12.0 || ^13.0 - Guzzle:
^7.8 || ^8.0
Installation
Install via Composer:
Configuration
Publish the configuration:
Environment variables:
NS_SUBSCRIPTION_KEYNS_API_URL(default:https://gateway.apiportal.ns.nl/reisinformatie-api/api/v2/)NS_DISRUPTIONS_API_URL(default:https://gateway.apiportal.ns.nl/disruptions)NS_API_CONNECT_TIMEOUT(default:10)NS_API_TIMEOUT(default:30)
Usage
Stations
Departures by station code
Arrivals by station code
Disruptions API (v3)
Additional HTTP helpers
Error handling
Non-2xx responses are mapped to package exceptions where applicable:
404=>NotFoundException422=>ValidationException400and429=>FailedActionException- Connection failures =>
TimeoutException
Other HTTP failures throw Exception.
Package maintenance
This package includes GitHub automation for common package checks and releases:
- CI workflow: tests matrix on PHP 8.4/8.5 with Guzzle 7 and 8 combinations.
- Integrity workflow checks:
composer validate --strictandcomposer audit. - Static analysis:
composer analyse(PHPStan). - Coverage workflow:
composer test:coverage, artifact upload, and optional Codecov upload. - Dependabot updates for Composer dependencies and GitHub Actions.
- Release workflow on version tags (
*.*.*andv*.*.*) that runs tests, creates a GitHub Release, and publishes a provenance attestation.
Releasing a new version
- Update
CHANGELOG.mdwith the release notes. - Commit and merge to your release branch.
- Create and push a SemVer tag, for example
1.2.0. - The release workflow will run tests and publish the GitHub Release automatically.
Signed tags
If your organization requires signed tags, create and push an annotated signed tag:
All versions of laravel-ns-api with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
ext-json Version *
guzzlehttp/guzzle Version ^7.8 || ^8.0
illuminate/support Version ^10.0 || ^11.0 || ^12.0 || ^13.0
ext-json Version *
guzzlehttp/guzzle Version ^7.8 || ^8.0
illuminate/support Version ^10.0 || ^11.0 || ^12.0 || ^13.0
The package rensphilipsen/laravel-ns-api contains the following files
Loading the files please wait ...