PHPackages                             pion/metno - 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. pion/metno

AbandonedArchivedLibrary

pion/metno
==========

MET.no API library for fetching weather forecast

1.0.1(10y ago)11484[1 issues](https://github.com/pionl/METno/issues)[1 PRs](https://github.com/pionl/METno/pulls)MITPHPPHP &gt;=5.3.0

Since Jun 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pionl/METno)[ Packagist](https://packagist.org/packages/pion/metno)[ Fund](https://revolut.me/martinpv7n)[ GitHub Sponsors](https://github.com/pionl)[ RSS](/packages/pion-metno/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

MET.no forecast library
=======================

[](#metno-forecast-library)

Small library for getting forecast for given coordinates. Updated to newest API, originally made in 2012.

Endpoint: Endpoint version: 1.8

Usage
-----

[](#usage)

Basic usage you can find in example.php

You can install this library via composer or download the classes and to load all the classes you can use loader\_METno.php

Add to composer require

```
"pion/metno": ">=1.0.0"

```

For best clean of cached xml files use a cron with sh script like this (delete files older than 1 day):

```
find _METcache/ -mtime +1 -type f -delete

```

METnoDay
--------

[](#metnoday)

This class represents the forecast for the day. It has several properties you can access. By default the symbol and values is taken from the highest temperature, you can also set the hour which should be used.

The day has also forecast for every day (represented by METnoForecast class). When API has missing hour, the parsing will ensure that the hour will be filled by previous/next value.

Also you can access night forecast, hour forecast for highest or lowest temperature.

Custom settings
---------------

[](#custom-settings)

All custom settings can be made in METnoFactory via setters. You can change the class of the symbol (representing the forecast icon) and percipitation (representing values)

TODO
----

[](#todo)

Possible features that could be made

### METno

[](#metno)

- info abaout location, should be added to METnoDay too
- time by location
- detection of night by sunset (currently detection is made by hour)

### METnoDay

[](#metnoday-1)

- mornig forecast
- correct hour symbol from the form

###  Health Score

24

↓

LowBetter than 32% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

2

Last Release

3983d ago

### Community

Maintainers

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

---

Top Contributors

[![lachmart](https://avatars.githubusercontent.com/u/7383506?v=4)](https://github.com/lachmart "lachmart (1 commits)")[![olivierov](https://avatars.githubusercontent.com/u/10825848?v=4)](https://github.com/olivierov "olivierov (1 commits)")[![ondracek](https://avatars.githubusercontent.com/u/6927630?v=4)](https://github.com/ondracek "ondracek (1 commits)")

---

Tags

forecastwrapper-apiweatherforecastMET.no

### Embed Badge

![Health badge](/badges/pion-metno/health.svg)

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

###  Alternatives

[guhelski/forecast-php

Drop dead simple Dark Sky API wrapper in PHP

42143.8k](/packages/guhelski-forecast-php)[adinan-cenci/climatempo-api

Uma api para previsão de tempo escrita em PHP.

448.2k](/packages/adinan-cenci-climatempo-api)[rugaard/weatherkit

Integrate Apple WeatherKit API into your project

111.4k](/packages/rugaard-weatherkit)

PHPackages © 2026

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