Skip to content

Commit

Permalink
Various updates including README file info for installing older 2.x.x…
Browse files Browse the repository at this point in the history
… versions (to support older PHP versions), docblock updates (for updated GitHub username). Migration of phpunit.xml to latest v9 syntax.
  • Loading branch information
allebb committed Dec 23, 2020
1 parent 06be2e8 commit eb6b008
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 30 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,4 +5,5 @@
composer.phar
.DS_Store
Thumbs.db
.phpunit.result.cache
!*.yml
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -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
-------

Expand All @@ -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
-------------

Expand Down
2 changes: 1 addition & 1 deletion examples/Examples.php
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion lib/Helpers/MetarHTTPClient.php
Expand Up @@ -12,7 +12,7 @@
*
* @author Bobby Allen <ballen@bobbyallen.me>
* @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
*
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Metar.php
Expand Up @@ -9,7 +9,7 @@
*
* @author Bobby Allen <ballen@bobbyallen.me>
* @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
*
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Providers/Ivao.php
Expand Up @@ -9,7 +9,7 @@
*
* @author Bobby Allen <ballen@bobbyallen.me>
* @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
*
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Providers/MetarProviderInterface.php
Expand Up @@ -9,7 +9,7 @@
*
* @author Bobby Allen <ballen@bobbyallen.me>
* @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
*
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Providers/Noaa.php
Expand Up @@ -9,7 +9,7 @@
*
* @author Bobby Allen <ballen@bobbyallen.me>
* @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
*
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Providers/Vatsim.php
Expand Up @@ -9,7 +9,7 @@
*
* @author Bobby Allen <ballen@bobbyallen.me>
* @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
*
*/
Expand Down
34 changes: 11 additions & 23 deletions phpunit.xml
@@ -1,25 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="phpunit.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
syntaxCheck="true"
verbose="true"
>
<testsuites>
<testsuite name="Package Unit Tests">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./lib</directory>
</whitelist>
</filter>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="phpunit.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnError="false" stopOnFailure="false" verbose="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./lib</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Package Unit Tests">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
</phpunit>

0 comments on commit eb6b008

Please sign in to comment.