From eb6b008a8bcb5bf06c3944dd22bcc67af2fc6df1 Mon Sep 17 00:00:00 2001 From: Bobby Allen Date: Wed, 23 Dec 2020 09:22:38 +0000 Subject: [PATCH] Various updates including README file info for installing older 2.x.x versions (to support older PHP versions), docblock updates (for updated GitHub username). Migration of phpunit.xml to latest v9 syntax. --- .gitignore | 1 + README.md | 8 ++++++ examples/Examples.php | 2 +- lib/Helpers/MetarHTTPClient.php | 2 +- lib/Metar.php | 2 +- lib/Providers/Ivao.php | 2 +- lib/Providers/MetarProviderInterface.php | 2 +- lib/Providers/Noaa.php | 2 +- lib/Providers/Vatsim.php | 2 +- phpunit.xml | 34 ++++++++---------------- 10 files changed, 27 insertions(+), 30 deletions(-) diff --git a/.gitignore b/.gitignore index 1450a2b..78c55d5 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ composer.phar .DS_Store Thumbs.db +.phpunit.result.cache !*.yml \ No newline at end of file diff --git a/README.md b/README.md index 0530303..ab870ff 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,8 @@ Requirements This library is unit tested against PHP 7.3, 7.4 and 8.0! +If you need to use an older version of PHP, you should instead install the 2.x version of this library (see below for details). + License ------- @@ -35,6 +37,12 @@ The recommended way of installing this library is via. [Composer](http://getcomp composer require ballen/metar ``` +*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:** + +```shell +composer require ballen/metar ^2.0 +``` + Example usage ------------- diff --git a/examples/Examples.php b/examples/Examples.php index bf2ffa7..e168a5c 100644 --- a/examples/Examples.php +++ b/examples/Examples.php @@ -10,7 +10,7 @@ echo sprintf('The METAR report for Stanstead (EGSS) is: %s', $egss); /** - * Alternatively, Flight simulation enthusiates may wish to retrieve the current VATSIM reports, + * Alternatively, Flight simulation enthusiasts may wish to retrieve the current VATSIM reports, * this can be achieved by */ $leib = new Metar('LEIB'); diff --git a/lib/Helpers/MetarHTTPClient.php b/lib/Helpers/MetarHTTPClient.php index 0b2f633..0624401 100644 --- a/lib/Helpers/MetarHTTPClient.php +++ b/lib/Helpers/MetarHTTPClient.php @@ -12,7 +12,7 @@ * * @author Bobby Allen * @license http://www.gnu.org/licenses/gpl-3.0.html - * @link https://github.com/bobsta63/metar + * @link https://github.com/allebb/metar * @link http://www.bobbyallen.me * */ diff --git a/lib/Metar.php b/lib/Metar.php index d4f51cd..e96d221 100644 --- a/lib/Metar.php +++ b/lib/Metar.php @@ -9,7 +9,7 @@ * * @author Bobby Allen * @license http://www.gnu.org/licenses/gpl-3.0.html - * @link https://github.com/bobsta63/metar + * @link https://github.com/allebb/metar * @link http://www.bobbyallen.me * */ diff --git a/lib/Providers/Ivao.php b/lib/Providers/Ivao.php index 13484a5..b81422f 100644 --- a/lib/Providers/Ivao.php +++ b/lib/Providers/Ivao.php @@ -9,7 +9,7 @@ * * @author Bobby Allen * @license http://www.gnu.org/licenses/gpl-3.0.html - * @link https://github.com/bobsta63/metar + * @link https://github.com/allebb/metar * @link http://www.bobbyallen.me * */ diff --git a/lib/Providers/MetarProviderInterface.php b/lib/Providers/MetarProviderInterface.php index 596d86d..ce221e2 100644 --- a/lib/Providers/MetarProviderInterface.php +++ b/lib/Providers/MetarProviderInterface.php @@ -9,7 +9,7 @@ * * @author Bobby Allen * @license http://www.gnu.org/licenses/gpl-3.0.html - * @link https://github.com/bobsta63/metar + * @link https://github.com/allebb/metar * @link http://www.bobbyallen.me * */ diff --git a/lib/Providers/Noaa.php b/lib/Providers/Noaa.php index fdb818d..fe20c60 100644 --- a/lib/Providers/Noaa.php +++ b/lib/Providers/Noaa.php @@ -9,7 +9,7 @@ * * @author Bobby Allen * @license http://www.gnu.org/licenses/gpl-3.0.html - * @link https://github.com/bobsta63/metar + * @link https://github.com/allebb/metar * @link http://www.bobbyallen.me * */ diff --git a/lib/Providers/Vatsim.php b/lib/Providers/Vatsim.php index b107d82..1ab2778 100644 --- a/lib/Providers/Vatsim.php +++ b/lib/Providers/Vatsim.php @@ -9,7 +9,7 @@ * * @author Bobby Allen * @license http://www.gnu.org/licenses/gpl-3.0.html - * @link https://github.com/bobsta63/metar + * @link https://github.com/allebb/metar * @link http://www.bobbyallen.me * */ diff --git a/phpunit.xml b/phpunit.xml index 9e6ca48..4178f46 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,25 +1,13 @@ - - - - ./tests - - - - - ./lib - - + + + + ./lib + + + + + ./tests + +