PHPackages                             sagem-cassiopee/php-metar-decoder - 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. sagem-cassiopee/php-metar-decoder

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

sagem-cassiopee/php-metar-decoder
=================================

METAR weather observation decoder

v0.8(6y ago)507.1k↓38.3%18[4 issues](https://github.com/SafranCassiopee/php-metar-decoder/issues)GPL-3.0+PHPPHP &gt;=5.3.0CI failing

Since Feb 26Pushed 7mo ago16 watchersCompare

[ Source](https://github.com/SafranCassiopee/php-metar-decoder)[ Packagist](https://packagist.org/packages/sagem-cassiopee/php-metar-decoder)[ RSS](/packages/sagem-cassiopee-php-metar-decoder/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (1)Versions (10)Used By (0)

PHP METAR decoder
=================

[](#php-metar-decoder)

[![License](https://camo.githubusercontent.com/7aadf3e1d48bfa51e05827ea19bb9696329b91199141d7cfc42220bccd7cf188/68747470733a2f2f706f7365722e707567782e6f72672f73616672616e2d63617373696f7065652f7068702d6d657461722d6465636f6465722f6c6963656e73652e737667)](https://packagist.org/packages/safran-cassiopee/php-metar-decoder)[![Build Status](https://camo.githubusercontent.com/10f40d2ee40d120fc032f3cb51c03da53ee8e82a13a8d63b0a822e32803f2291/68747470733a2f2f7472617669732d63692e6f72672f53616672616e43617373696f7065652f7068702d6d657461722d6465636f6465722e737667)](https://travis-ci.org/SafranCassiopee/php-metar-decoder)[![Coverage Status](https://camo.githubusercontent.com/cfc14617a49f1a98923a251bb13a0be7c09c72e60c83c5755dc392a2130deae7/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f53616672616e43617373696f7065652f7068702d6d657461722d6465636f6465722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/SafranCassiopee/php-metar-decoder?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/8029a5f4f711f89e261a34e206f7b36cedb81a0e2c151e90607f5695a34965fa/68747470733a2f2f706f7365722e707567782e6f72672f73616672616e2d63617373696f7065652f7068702d6d657461722d6465636f6465722f762f737461626c652e737667)](https://packagist.org/packages/safran-cassiopee/php-metar-decoder)

A PHP library to decode METAR strings, fully unit tested (100% code coverage)

They use php-metar-decoder in production:

- [VMC Today](http://vmc.today/) (public)
- [Safran Cassiopée](http://www.cassiopee.aero/) (private)
- Your service here ? Submit a pull request or open an issue !

Introduction
------------

[](#introduction)

This piece of software is a library package that provides a parser to decode raw METAR observation.

METAR is a format made for weather information reporting. METAR weather reports are predominantly used by pilots and by meteorologists, who use it to assist in weather forecasting. Raw METAR format is highly standardized through the International Civil Aviation Organization (ICAO).

- [METAR definition on wikipedia](http://en.wikipedia.org/wiki/METAR)
- [METAR format specification](http://www.wmo.int/pages/prog/www/WMOCodes/WMO306_vI1/VolumeI.1.html)
- [METAR documentation](http://meteocentre.com/doc/metar.html)

Requirements
------------

[](#requirements)

This library package only requires PHP &gt;= 5.3

It is currently tested automatically for PHP 5.3, 5.4 and 5.5.

If you want to integrate it easily in your project, you should consider installing [composer](http://getcomposer.org) on your system. It is not mandatory though.

Setup
-----

[](#setup)

- With composer *(recommended)*

Add the following line to the `composer.json` of your project

```
{
    "require": {
        "safran-cassiopee/php-metar-decoder": "dev-master"
    }
}
```

Launch install from your project root with:

```
composer install --no-dev
```

Load the library thanks to composer autoloading:

```
