PHPackages                             rugaard/pollen - 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. rugaard/pollen

ActiveLibrary[API Development](/categories/api)

rugaard/pollen
==============

Fetch latest Pollen measurements from Astma-Allergi Denmark.

1.0.3(5y ago)713MITPHPPHP ^7.2|^8.0

Since Jul 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/rugaard/pollen)[ Packagist](https://packagist.org/packages/rugaard/pollen)[ Docs](https://github.com/rugaard)[ RSS](/packages/rugaard-pollen/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

[![](https://camo.githubusercontent.com/217da9e481646cafde1ef99b5a8bfc56207ca33d1117b7c7b13568dbaebdb4cc/68747470733a2f2f727567616172642e6769746875622e696f2f7061636b616765732f706f6c6c656e2f6c6f676f2e6a7067)](https://camo.githubusercontent.com/217da9e481646cafde1ef99b5a8bfc56207ca33d1117b7c7b13568dbaebdb4cc/68747470733a2f2f727567616172642e6769746875622e696f2f7061636b616765732f706f6c6c656e2f6c6f676f2e6a7067)

🇩🇰🤧 Pollen measurements from Astma-Allergi Denmark
==================================================

[](#-pollen-measurements-from-astma-allergi-denmark)

[![](https://camo.githubusercontent.com/72953407a2b2ce2cffae3d5a0fb6b0c564722139263565b48fb7fc9302475e51/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f727567616172642f706f6c6c656e2e737667)](https://github.com/rugaard/pollen/releases)[![](https://camo.githubusercontent.com/093771058163050a2c808fe1e9a83ba8e2f3150e591f44b7c6ca59bc7fd1f385/68747470733a2f2f7472617669732d63692e6f72672f727567616172642f706f6c6c656e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rugaard/pollen)[![](https://camo.githubusercontent.com/ca4b44f1cb7c6ad8067d5a18029ce2449537f80f25fd4b3a8d48fc7618116c75/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f636f7665726167652f727567616172642f706f6c6c656e2e737667)](https://codeclimate.com/github/rugaard/pollen)[![](https://camo.githubusercontent.com/47115b09c9280fd5533973a333b47b2c60d7b953af2ab0be618c2590134d28fd/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f727567616172642f706f6c6c656e2e737667)](https://codeclimate.com/github/rugaard/pollen)[![](https://camo.githubusercontent.com/cfcbaa058880bc251c911bc111f70b161634f10aa1643b817a759ccd7378d8b5/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76312e7376673f6c6162656c436f6c6f723d356635663566266c6162656c3d6c6963656e736526636f6c6f723d343338393761266d6573736167653d434325323042592d4e432d4e44)](https://creativecommons.org/licenses/by-nc-nd/4.0/)

Astma-Allergi Denmark does unfortunately not offer an official API for the latest pollen measurements in Denmark.

This package is (in some form) a workaround for that. It collects the latest measurements from the official Astma-Allergi Denmark website and turns it into structured data objects.

The returned data shows the measured pollen between **13:00** *(1:00 PM)* yesterday and **13:00** *(1:00 PM)* present day. Everyday at **16:00** *(4:00 PM)* the latest measurements are being published.

⚠️ Disclaimer
-------------

[](#️-disclaimer)

Since Astma-Allergi Denmark is an independent union, with a very little government funding, this package is made available under a very strict license, which prohibits any use other than personal.

If you wish to use the pollen measurements commercially, you should contact Astma-Allergi Denmark directly and support them by buying the data instead. The payment goes directly to the maintenance and further development of their Pollen measurement service.

For more info about a commercial license, [visit their official website](https://hoefeber.astma-allergi.dk/pollenfeed).

📖 Table of contents
-------------------

[](#-table-of-contents)

- [Installation](#-installation)
    - [Laravel](#laravel)
- [Usage](#%EF%B8%8F-usage)
    - [Pollen Client](#pollen-client)
    - [Methods](#methods)
        - [Get measurements](#get-measurements)
- [Pollen stations](#-pollen-stations)
- [Frequently Asked Questions (FAQ)](#-frequently-asked-questions-faq)
    - [What is this `Tightenco\Collect\Support\Collection` class and how does it work?](#what-is-this-tightencocollectsupportcollection-class-and-how-does-it-work)
- [Donating to Astma-Allergi Denmark](#-donating-to-astma-allergi-denmark)
- [License](#-license)

📦 Installation
--------------

[](#-installation)

You can install the package via [Composer](https://getcomposer.org/), by using the following command:

```
composer require rugaard/pollen
```

### Laravel

[](#laravel)

This package comes with a out-of-the-box Service Provider for the [Laravel](http://laravel.com) framework. If you're using a newer version of Laravel (`>= 5.5`) then the service provider will be loaded automatically.

Are you using an older version, then you need to manually add the service provider to the `config/app.php` file:

```
'providers' => [
    Rugaard\Pollen\Providers\Laravel\ServiceProvider::class,
]
```

⚙️ Usage
--------

[](#️-usage)

First thing you need to do, is to instantiate the `Pollen` client

```
# Instantiate the Pollen client.
$pollen = new \Rugaard\Pollen\Pollen;
```

Once you've done that, you're able to request the latest measurements from one of the [supported pollen stations](#-pollen-stations):

```
# Copenhagen pollen station.
$measurements = $pollen->get('copenhagen');
```

### Pollen client

[](#pollen-client)

The Pollen client which handles the requests to Astma-Allergi Denmark.

```
new Pollen(?Client $httpClient);
```

ParameterTypeDefaultDescription`$httpClient``\GuzzleHttp\ClientInterface``null`Replace the default underlying HTTP Client### Methods

[](#methods)

#### Get measurements.

[](#get-measurements)

Get latest pollen measurements from a specific pollen station.

```
get(string $stationCode);
```

ParameterTypeDescription`$stationCode``string`Code of station. [Supported pollen stations.](#-pollen-stations)***Note**: The returned data shows the measured pollen between 13:00 (1:00 PM) yesterday and 13:00 (1:00 PM) present day. The measurements are updated everyday at 16:00 (4:00 PM).*

🏛 Pollen stations
-----------------

[](#-pollen-stations)

Currently there only exists two Pollen stations in Denmark.

IDNameCodeRegion48København`copenhagen`East49Viborg`viborg`West🗣 Frequently Asked Questions (FAQ)
----------------------------------

[](#-frequently-asked-questions-faq)

#### What is this `Tightenco\Collect\Support\Collection` class and how does it work?

[](#what-is-this-tightencocollectsupportcollection-class-and-how-does-it-work)

All data is returned within a `Tightenco\Collect\Support\Collection` class. The class is a port of the popular `Collection` class from [Laravel](https://laravel.com).

Please refer to [Laravel](https://laravel.com)'s detailed documentation, to learn more about how you work with a `Collection`:

💰 Donating to Astma-Allergi Denmark
-----------------------------------

[](#-donating-to-astma-allergi-denmark)

To help Astma-Allergi Denmark maintain and further develop the Pollen measurement service.
Please consider [sending them a donation](https://www.astma-allergi.dk/stoetos).

🚓 License
---------

[](#-license)

This package is licensed under a [Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 (CC BY-NC-ND 4.0)](https://creativecommons.org/licenses/by-nc-nd/4.0/).

[![Creative Commons License](https://camo.githubusercontent.com/226202689215cfe3077946570d1d45b99e1bd507628d1843e9ded32ddc8cc055/68747470733a2f2f692e6372656174697665636f6d6d6f6e732e6f72672f6c2f62792d6e632d6e642f342e302f38387833312e706e67)](https://creativecommons.org/licenses/by-nc-nd/4.0/)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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 ~159 days

Total

4

Last Release

2007d ago

PHP version history (2 changes)1.0.0PHP ^7.2

1.0.3PHP ^7.2|^8.0

### Community

Maintainers

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

---

Top Contributors

[![rugaard](https://avatars.githubusercontent.com/u/179868?v=4)](https://github.com/rugaard "rugaard (5 commits)")

---

Tags

allergyapiasthmaastma-allergiastma-allergi-danmarkastma-allergi-denmarkmeasurementspollenpollen-measurementsmeasurementsrugaardmortenmorten rugaardpollenpollen measurementshay feverallergic hay feverasthmaallergies

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rugaard-pollen/health.svg)

```
[![Health](https://phpackages.com/badges/rugaard-pollen/health.svg)](https://phpackages.com/packages/rugaard-pollen)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[rugaard/weatherkit

Integrate Apple WeatherKit API into your project

111.4k](/packages/rugaard-weatherkit)[mvdnbrk/dhlparcel-php-api

DHL Parcel API client for PHP

3957.9k5](/packages/mvdnbrk-dhlparcel-php-api)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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