Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 774 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 774 Bytes

php-metar

PHP library that parses coded METAR weather reports.

How to use:

Here's an example of METAR data: KTTN 051853Z 04011KT M1/2SM VCTS SN FZFG BKN003 OVC010 M02/M02 A3006 RMK AO2 TSB40 SLP176 P0002 T10171017=

<?php

include 'Metar.php';

$data = "KTTN 051853Z 04011KT M1/2SM VCTS SN FZFG BKN003 OVC010 M02/M02 A3006 RMK AO2 TSB40 SLP176 P0002 T10171017=";
$metar = new Metar($data);
$result = $metar->parse();

print($result)

You are welcome to submit a PR request, I will review it before merge into our main branch. I encourage you to submit a PR request if you see a bugs or an improvement.

If you want to contribute, you have to fork this repo. Read more here about fork https://akrabat.com/the-beginners-guide-to-contributing-to-a-github-project/