Download the PHP package rabollig/density-altitude without Composer

On this page you can find all versions of the php package rabollig/density-altitude. 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 density-altitude

php-density-altitude

Density Altitude calculator class for PHP based on formulas published by the U.S. National Weather Service.

You know that warm air is less dense than colder air - this is the principle that makes hot air balloons fly. Humidity, air pressure and temperature can all change the air in a way that makes altitude seem higher or lower than it actually is. When the air is thinner because the temperature is warmer, we say that the "density altitude" is higher. It is although you were actually at a higher altitude on a standard day.

Density altitude can affect the oxygen intake to engines and athletes, the performance of aircraft, and even beer brewing and cake baking.

DANGER!

Do not use this class for safety-sensitive applications:

You must indicate your understanding of this disclaimer when calling the class

Use

To calculate density altitude, we need to know the actual altitude, the temperature, the dewpoint, and the air pressure.

The class can accept inputs in several common units.

The class will output the density altitude in either feet or meters depending on the units used to set the altitude initially.

Inputs may be in any order.

You must include the method acknowledging the safety considerations of this class. This is required so that future maintainers of your code are aware of the class's limitations and do not blindly copy the code to more critical applications.

Notes

This class is not certified. This class has no engineering or scientific review.

This class was not developed by a physicist, meteorologist or engineer - nor has it been tested or reviewed by one.

Notes on the formulas used

The developer is a private pilot, so has some clue about density altitide. The formulas are based on https://www.weather.gov/epz/wxcalc_densityaltitude from the National Weather Service, apparently by Tim Brice ([email protected]) and Todd Hall ([email protected]). The formulas are referenced in PDF from https://www.weather.gov/media/epz/wxcalc/densityAltitude.pdf and https://www.weather.gov/media/epz/wxcalc/pressureConversion.pdf These formulas have a lot of steps, multiple mixed units, no references or explanations.

Wikipedia's article on density altitude, https://en.wikipedia.org/wiki/Density_altitude , references three different formulas, none of which have citations.

Wikipedia notes that the NWS standard should round to the nearest 100 feet. The documents from the NWS web site do not say this, but also give no indication of significant figures.

When comparing the formula and class to FAA AWOS reports, the 100 foot rounding seems to give correct results.

Other formulas and calculators appear to give much different results. I don't have a clear enough understanding of density altitude to make judgements on why other reports and calculators produce significantly different results.

https://airdensityonline.com/free-calcs/ is an example of another calculator that seems more knowledgable than me, but gives pretty different answers.

Notes on testing

Even though I am a pilot, I will not rely on this class for navigation - I will instead rely on the Density Altitude charts, official reports, or the E6B flight calculator.

To test, I compared values computed to ASOS reports from airports and the NWS JavaScript calculator referenced above.

I changed input values to make sure the calculated values moved in the correct direction (nothing wired backwards).

I tested examples from flight training materials I own.

Contributions

I welcome contributions - especially bug reports and criticism.

I would like for this class to someday be trustworthy enough for actual flight operations, but I do not believe this is something that one person can do on their own - it's too easy to overlook mistakes.


All versions of density-altitude with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
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 rabollig/density-altitude contains the following files

Loading the files please wait ....