dev-master
9999999-devTAF weather forecast decoder
GPL-3.0+
The Requires
- php >=5.3.0
The Development Requires
by Philippe Martin
V0.1
0.1.0.0TAF weather forecast decoder
GPL-3.0+
The Requires
- php >=5.3.0
The Development Requires
by Philippe Martin
Wallogit.com
2017 © Pedro PelĂĄez
TAF weather forecast decoder
A PHP library to decode TAF (Terminal Aerodrome Forecast) strings, fully unit tested (100% code coverage), (*2)
Try it on the demo website, (*3)
They use php-taf-decoder in production:, (*4)
This piece of software is a library package that provides a parser to decode raw TAF messages., (*5)
TAF is a format made for weather information forecast. It is predominantly used by in aviation, during flight preparation. Raw TAF format is highly standardized through the International Civil Aviation Organization (ICAO)., (*6)
This library package only requires PHP >= 5.3, (*7)
It is currently tested automatically for PHP 5.3, 5.4 and 5.5., (*8)
If you want to integrate it easily in your project, you should consider installing composer on your system. It is not mandatory though., (*9)
Add the following line to the composer.json of your project, (*10)
{
"require": {
"safran-cassiopee/php-taf-decoder": "dev-master"
}
}
Launch install from your project root with:, (*11)
composer install --no-dev
Load the library thanks to composer autoloading:, (*12)
<?php require_once 'vendor/autoload.php';
Download the latest release from github, (*13)
Extract it wherever you want in your project. The library itself is in the src/ directory, the other directories are not mandatory for the library to work., (*14)
Load the library with the static import file:, (*15)
<?php require_once 'path/to/TafDecoder/TafDecoder.inc.php';
Instantiate the decoder and launch it on a TAF string. The returned object is a DecodedTaf object from which you can retrieve all the weather properties that have been decoded., (*16)
All values who have a unit are based on the Value object which provides the methods getValue() and getUnit(), (*17)
TODO: full documentation of the structure of the DecodedTaf object, (*18)
TODO: Provide a PHP example, (*19)
If you find a valid TAF that is badly parsed by this library, please open a github issue with all possible details:, (*20)
If you want to improve or enrich the test suite, fork the repository and submit your changes with a pull request., (*21)
If you have any other idea to improve the library, please use github issues or directly pull requests depending on what you're more comfortable with., (*22)
This library is fully unit tested, and uses PHPUnit to launch the tests., (*23)
Travis CI is used for continuous integration, which triggers tests for PHP 5.3, 5.4, 5.5 for each push to the repo., (*24)
To run the tests by yourself, you must first install the dev dependencies (composer needed), (*25)
composer install --dev apt-get install php5-xdebug # only needed if you're interested in code coverage
Launch the test suite with the following command:, (*26)
./vendor/bin/phpunit tests
You can also generate an html coverage report by adding the --coverage-html option:, (*27)
```shell ./vendor/bin/phpunit --coverage-html ./report tests ``, (*28)
TAF weather forecast decoder
GPL-3.0+
TAF weather forecast decoder
GPL-3.0+