PHPackages                             baspa/buienradar-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. baspa/buienradar-php-api

ActiveLibrary[API Development](/categories/api)

baspa/buienradar-php-api
========================

PHP package to provide fluent syntax for the Buienradar API

v2.1.0(1w ago)2444MITPHPPHP ^8.2CI passing

Since Mar 16Pushed 1w ago1 watchersCompare

[ Source](https://github.com/Baspa/buienradar-php-api)[ Packagist](https://packagist.org/packages/baspa/buienradar-php-api)[ Docs](https://github.com/baspa/buienradar-php-api)[ GitHub Sponsors](https://github.com/Baspa)[ RSS](/packages/baspa-buienradar-php-api/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (10)Versions (14)Used By (0)

Buienradar PHP API
==================

[](#buienradar-php-api)

[![Total Downloads](https://camo.githubusercontent.com/a52a758746366d100ec84ed6d3d3714b8c8827ac5ffef55f9b176262d50c4415/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62617370612f627569656e72616461722d7068702d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/baspa/buienradar-php-api)[![Tests](https://github.com/baspa/buienradar-php-api/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/baspa/buienradar-php-api/actions/workflows/run-tests.yml)[![PHPStan](https://github.com/baspa/buienradar-php-api/actions/workflows/phpstan.yml/badge.svg?branch=main)](https://github.com/baspa/buienradar-php-api/actions/workflows/phpstan.yml)[![codecov](https://camo.githubusercontent.com/16d68913786483f25643e7ccd4bccd37563ea686718c1a1fca0431601dfbcf19/68747470733a2f2f636f6465636f762e696f2f67682f62617370612f627569656e72616461722d7068702d6170692f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/baspa/buienradar-php-api)[![GitHub release (latest by date)](https://camo.githubusercontent.com/3d3776b40e2245e6dd77517fb927bbbffdefa9429d79fcd0ce4f39f45029e401/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f62617370612f627569656e72616461722d7068702d617069)](https://camo.githubusercontent.com/3d3776b40e2245e6dd77517fb927bbbffdefa9429d79fcd0ce4f39f45029e401/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f62617370612f627569656e72616461722d7068702d617069)[![Packagist PHP Version Support](https://camo.githubusercontent.com/cc0e67595df7aa284168c2a15f6bc02179a0a58735b58354110a9862555bd481/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f62617370612f627569656e72616461722d7068702d617069)](https://camo.githubusercontent.com/cc0e67595df7aa284168c2a15f6bc02179a0a58735b58354110a9862555bd481/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f62617370612f627569656e72616461722d7068702d617069)[![Latest Version on Packagist](https://camo.githubusercontent.com/dcc62284f38e1f34705b7692029235b911e00aa7b593f08079911a173fa37ca4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62617370612f627569656e72616461722d7068702d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/baspa/buienradar-php-api)

This framework-agnostic PHP package provides a fluent syntax to interact with the Buienradar API.

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

[](#installation)

You can install the package via composer:

```
composer require baspa/buienradar-php-api
```

Usage
-----

[](#usage)

### Initialization

[](#initialization)

Create an instance of the `Buienradar` class:

```
use Baspa\Buienradar\Buienradar;

$buienradar = new Buienradar();
```

### Get the actual forecast report

[](#get-the-actual-forecast-report)

```
$forecast = $buienradar->forecast()->report();
```

### Get the short-term forecast

[](#get-the-short-term-forecast)

```
$forecast = $buienradar->forecast()->shortTerm();
```

### Get the long-term forecast

[](#get-the-long-term-forecast)

```
$forecast = $buienradar->forecast()->longTerm();
```

### Get the forecast for the upcoming 5 days

[](#get-the-forecast-for-the-upcoming-5-days)

```
$forecast = $buienradar->forecast()->forFiveDays();
```

### Get the forecast for one specific day

[](#get-the-forecast-for-one-specific-day)

If you want to get the forecast for a specific day, you can use the `forDay` method. The parameter is the day you want to get the forecast for, where 0 is today, 1 is tomorrow, and so on. The maximum value is 4.

```
$forecast = $buienradar->forecast()->forDay(1);
```

### Get the actual forecast for a specific measurement station

[](#get-the-actual-forecast-for-a-specific-measurement-station)

Choose either one of the following measuring stations:

- Meetstation Arcen
- Meetstation Arnhem
- Meetstation Berkhout
- Meetstation De Bilt
- Meetstation Den Helder
- Meetstation Eindhoven
- Meetstation Ell
- Meetstation Gilze Rijen
- Meetstation Goes
- Meetstation Groenlo-Hupsel
- Meetstation Groningen
- Meetstation Heino
- Meetstation Herwijnen
- Meetstation Hoek van Holland
- Meetstation Hoogeveen
- Meetstation Hoorn Terschelling
- Meetstation Houtribdijk
- Meetstation IJmuiden
- Meetstation Lauwersoog
- Meetstation Leeuwarden
- Meetstation Lelystad
- Meetstation Lopik-Cabauw
- Meetstation Maastricht
- Meetstation Marknesse
- Meetstation Nieuw Beerta
- Meetstation Rotterdam
- Meetstation Rotterdam Geulhaven
- Meetstation Schiphol
- Meetstation Stavoren
- Meetstation Texelhors
- Meetstation Twente
- Meetstation Vlieland
- Meetstation Vlissingen
- Meetstation Volkel
- Meetstation Voorschoten
- Meetstation Westdorpe
- Meetstation Wijdenes
- Meetstation Wijk aan Zee
- Meetstation Woensdrecht
- Meetstation Zeeplatform F-3

For example, to get the forecast for the Volkel station, use:

```
use Baspa\Buienradar\Enum\MeasuringStation;

$forecast = $buienradar->actualForecastForStation(MeasuringStation::VOLKEL);
```

### Rain forecast (short-term precipitation)

[](#rain-forecast-short-term-precipitation)

Fetch the short-term precipitation forecast (next ~2 hours, per 5 minutes) for a coordinate:

```
use Baspa\Buienradar\Buienradar;

$rain = (new Buienradar)->rainForecast(52.1, 5.18);

foreach ($rain as $moment) {
    echo $moment->time;      // '14:25'
    echo $moment->value;     // 0–255 (raw Buienradar value)
    echo $moment->mm;        // mm per hour
    echo $moment->isDry();   // true when value === 0
}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Baspa](https://github.com/Baspa)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance73

Regular maintenance activity

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.4% 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 ~91 days

Recently: every ~128 days

Total

10

Last Release

13d ago

Major Versions

v1.0.6 → v2.0.02026-06-15

PHP version history (2 changes)v1.0.0PHP ^8.1

v2.0.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10845460?v=4)[Bas van Dinther](/maintainers/Baspa)[@Baspa](https://github.com/Baspa)

---

Top Contributors

[![Baspa](https://avatars.githubusercontent.com/u/10845460?v=4)](https://github.com/Baspa "Baspa (47 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (17 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (9 commits)")

---

Tags

apibuienradarbuienradar-apipackagephpBaspabuienradar-php-api

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/baspa-buienradar-php-api/health.svg)

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

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

TencentCloudApi php sdk

3741.3M46](/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)[files.com/files-php-sdk

Files.com PHP SDK

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

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1943.1k5](/packages/aimeos-prisma)

PHPackages © 2026

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