PHPackages                             mathieulesniak/metar-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mathieulesniak/metar-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mathieulesniak/metar-php
========================

lightweight library for decoding METAR messages

v0.1.1(7y ago)06MITPHP

Since Apr 1Pushed 6y agoCompare

[ Source](https://github.com/mathieulesniak/metar-php)[ Packagist](https://packagist.org/packages/mathieulesniak/metar-php)[ RSS](/packages/mathieulesniak-metar-php/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (3)Used By (0)

metar-php
=========

[](#metar-php)

Lightweight library for parsing METAR message

```
METAR is a format for reporting weather information. A METAR weather report is predominantly used by pilots in fulfillment of a part of a pre-flight weather briefing, and by meteorologists, who use aggregated METAR information to assist in weather forecasting.

From Wikipedia, the free encyclopedia

```

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

[](#installation)

```
$ composer require "jzawadzki/metar-php"
```

Usage
-----

[](#usage)

```
$metar = new \METAR\Message("EPKK 160030Z 06010KT 8000 BKN060 04/M03 Q1034");

echo $metar->getLocation(); //EPKK
echo $metar->getVisibility(); //8000
echo $metar->getQNH()->toHPa(); //1034
echo $metar->getQNH()->toInHg(); //30.53
echo $metar->getTemperature()->toUnit('C'); //4
echo $metar->getDewPoint()->toUnit('F'); //26.6

$view = new \METAR\View\Text($metar);
echo $view->render();
/*
METAR: EPKK 160030Z 06010KT 8000 BKN060 04/M03 Q1034

Location: EPKK
Day of month: 16 Time: 0030Z

Temperature: 4.0C Dew point: -3.0C
QNH: 1034 hPa (30.53 inHg)
*/
```

License
-------

[](#license)

MIT

Author
------

[](#author)

Jerzy Zawadzki

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81% 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 ~1296 days

Total

2

Last Release

2764d ago

### Community

Maintainers

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

---

Top Contributors

[![jzawadzki](https://avatars.githubusercontent.com/u/1220891?v=4)](https://github.com/jzawadzki "jzawadzki (34 commits)")[![k3a](https://avatars.githubusercontent.com/u/966992?v=4)](https://github.com/k3a "k3a (4 commits)")[![mathieulesniak](https://avatars.githubusercontent.com/u/1549321?v=4)](https://github.com/mathieulesniak "mathieulesniak (4 commits)")

### Embed Badge

![Health badge](/badges/mathieulesniak-metar-php/health.svg)

```
[![Health](https://phpackages.com/badges/mathieulesniak-metar-php/health.svg)](https://phpackages.com/packages/mathieulesniak-metar-php)
```

###  Alternatives

[josegonzalez/dotenv

dotenv file parsing for PHP

2799.8M137](/packages/josegonzalez-dotenv)[kartik-v/yii2-widget-datepicker

Enhanced Yii2 wrapper for the bootstrap datepicker plugin (sub repo split from yii2-widgets).

1097.0M60](/packages/kartik-v-yii2-widget-datepicker)[php-stubs/wp-cli-stubs

WP-CLI function and class declaration stubs for static analysis.

302.3M79](/packages/php-stubs-wp-cli-stubs)

PHPackages © 2026

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