{"id":29420041,"url":"https://github.com/allebb/metar","last_synced_at":"2025-07-12T01:15:27.554Z","repository":{"id":15894537,"uuid":"18635875","full_name":"allebb/metar","owner":"allebb","description":"A PHP library to query aerodrome METAR information (temperature, pressure, cloud, wind speed and direction etc.)","archived":false,"fork":false,"pushed_at":"2024-08-15T10:21:25.000Z","size":103,"stargazers_count":10,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-23T21:17:48.800Z","etag":null,"topics":["aviation","cloud","metar","php","pressure","reports","tempreture","visibility","weather","wind"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/allebb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2014-04-10T12:38:47.000Z","updated_at":"2024-01-07T10:48:49.000Z","dependencies_parsed_at":"2023-09-24T05:08:47.613Z","dependency_job_id":null,"html_url":"https://github.com/allebb/metar","commit_stats":{"total_commits":71,"total_committers":3,"mean_commits":"23.666666666666668","dds":0.07042253521126762,"last_synced_commit":"6acaa38a99e80fb1a0009e49997ef573e3a434ee"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/allebb/metar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allebb%2Fmetar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allebb%2Fmetar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allebb%2Fmetar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allebb%2Fmetar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allebb","download_url":"https://codeload.github.com/allebb/metar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allebb%2Fmetar/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264922927,"owners_count":23683707,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aviation","cloud","metar","php","pressure","reports","tempreture","visibility","weather","wind"],"created_at":"2025-07-12T01:15:26.625Z","updated_at":"2025-07-12T01:15:27.470Z","avatar_url":"https://github.com/allebb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Metar\n=====\n\n[![Build](https://github.com/allebb/metar/workflows/build/badge.svg)](https://github.com/allebb/metar/actions)\n[![Code Coverage](https://codecov.io/gh/allebb/metar/branch/master/graph/badge.svg)](https://codecov.io/gh/allebb/metar)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/allebb/metar/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/allebb/metar/?branch=master)\n[![Code Climate](https://codeclimate.com/github/allebb/metar/badges/gpa.svg)](https://codeclimate.com/github/allebb/metar)\n[![Latest Stable Version](https://poser.pugx.org/ballen/metar/v/stable)](https://packagist.org/packages/ballen/metar)\n[![Latest Unstable Version](https://poser.pugx.org/ballen/metar/v/unstable)](https://packagist.org/packages/ballen/metar)\n[![License](https://poser.pugx.org/ballen/metar/license)](https://packagist.org/packages/ballen/metar)\n\nA PHP library to query aerodrome METAR information, the library queries real-world METAR data direct from the National Oceanic and Atmospheric Administration (NOAA) and optionally for VATSIM or IVAO.\n\n__The default provider that is configured by this library is NOAA, if you decide to change the provider to VATSIM or IVAO you SHOULD NOT use it for real-world METAR reports.__\n\nRequirements\n------------\n\n* PHP \u003e= 7.3.0\n* cURL\n\nThis library is unit tested against PHP 7.3, 7.4, 8.0, 8.1 and 8.2!\n\nIf you need to use an older version of PHP, you should instead install the 2.x version of this library (see below for details).\n\nLicense\n-------\n\nThis client library is released under the [GPLv3](https://raw.githubusercontent.com/allebb/metar/master/LICENSE) license, you are welcome to use it, improve it and contribute your changes back!\n\nInstallation\n------------\n\nThe recommended way of installing this library is via. [Composer](http://getcomposer.org); To install using Composer type the following command at the console:\n\n```shell\ncomposer require ballen/metar\n```\n\n**If you need to use an older version of PHP, version 2.x.x supports PHP 5.6, 7.0, 7.1 and 7.2, you can install this version using Composer with this command instead:**\n\n```shell\ncomposer require ballen/metar ^2.0\n```\n\nExample usage\n-------------\n\n```php\nuse Ballen\\Metar\\Metar;\n\n/**\n * Using the default options, the report will be retrieved from the NOAA web service.\n */\n$egss = new Metar('EGSS');\necho sprintf('The METAR report for Stansted (EGSS) is: %s', $egss);\n\n/**\n * Alternatively, Flight simulation enthusiasts may wish to retrieve the current VATSIM reports,\n * this can be achieved by changing the default provider like so: \n */\n$egss-\u003esetProvider(Ballen\\Metar\\Providers\\Vatsim::class);\n\n/**\n* Since version 2.1.0, users can now query the IVAO web service for METARs too by using the 'IVAO' provider method like so:\n*/\n$egss-\u003esetProvider(Ballen\\Metar\\Providers\\Ivao::class);\n```\n\nTests and coverage\n------------------\n\nThis library is fully unit tested using [PHPUnit](https://phpunit.de/).\n\nI use [GitHub Actions](https://github.com/) for continuous integration, which triggers tests for PHP 7.3, 7.4, 8.0, 8.1 and 8.2 every time a commit is pushed.\n\nIf you wish to run the tests yourself you should run the following:\n\n```shell\n# Install the Metar Library (which will include PHPUnit as part of the require-dev dependencies)\ncomposer install\n\n# Now we run the unit tests (from the root of the project) like so:\n./vendor/bin/phpunit\n```\n\nCode coverage can also be run and a report generated (this does require XDebug to be installed)...\n\n```shell\n./vendor/bin/phpunit --coverage-html ./report\n```\n\nSupport\n-------\n\nI am happy to provide support via. my personal email address, so if you need a hand drop me an email at: [ballen@bobbyallen.me]().\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallebb%2Fmetar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallebb%2Fmetar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallebb%2Fmetar/lists"}