Download the PHP package cobaltgrid/aviation-weather without Composer

On this page you can find all versions of the php package cobaltgrid/aviation-weather. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package aviation-weather

Aviation Weather

A simple (Laravel compatible) library for fetching and decoding METARs. (Soon to be more than this, however)

Prerequisites

Installation

Using Composer:

$ composer require cobaltgrid/aviation-weather

This will ensure that all required dependencies will be installed automatically.

Usage

At the moment, Aviation Weather only support ICAO codes. You can load a METAR by passing the ICAO code when you construct the class.

Metar Object Methods

Method Description
raw_response() This gets you the raw JSON from the data source (SimpleXMLElement)
raw() This gets you the raw JSON METAR data from the data source (SimpleXMLElement)
raw_string() The raw METAR string (String)
icao() The ICAO code of the station (String)
time() A carbon object for the METAR's observation time (Carbon)
latitude() A float of the latitude of the observation (Float)
longitude() A float of the longitude of the observation (Float)
temperature() The temperature, in degrees celsius (Float)
dewpoint() The dew point, in degrees celsius (Float)
wind_direction() The wind direction, in whole degrees. If 0, this indicates a variable wind. (Int)
wind_speed() The wind speed, in knots. If both speed and direction are 0, wind is 'calm' (Int)
wind_gust() The wind gust, in knots (Int)
visibility($unit="m") Options: "km", "m", "nm", "mi". Gives the visibility in the chosen units. (Float/Int)
qnh($unit="hpa") Options: "hpa", "hg". Gives the QNH pressure setting in the chosen units. (Float/Int)
weather_array() An array of raw weather codes (i.e "-HZ +SH" etc) (Array)
weather() An array of decoded weather codes of the format: ['code' => '-RA', 'human' => 'Light Rain'] (Array)
sky_cover() An array of decoded cloud cover. Each array item is an array with the following format: ['type' => 'SCT', 'type_human' => 'Scattered', 'height' => 2000] . Height is in feet.
flight_cat() An indication of the type of flying permitted by the weather. Example values: MVFR, IFR, LVFR, etc.
toArray() Converts the above into an array format

All versions of aviation-weather with dependencies

PHP Build Version
Package Version
Requires nesbot/carbon Version 1.22.*
tightenco/collect Version 5.5.*
guzzlehttp/guzzle Version ^6.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package cobaltgrid/aviation-weather contains the following files

Loading the files please wait ....