Download the PHP package astrodog/laravel-weather without Composer

On this page you can find all versions of the php package astrodog/laravel-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 laravel-weather

🌤 Open-Meteo Weather API

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Open Meteo

Download Meteorological Data from OPEN-METEO API (https://open-meteo.com/en)

Open-Meteo collaborates with National Weather Services providing Open Data with 11 to 2 km resolution. Our high performance APIs select the best weather model for your location and provide data as a simple JSON API.

APIs are free without any API key for open-source developers and non-commercial use. You can embed them directly into your app.

Installation

You can install the package via composer:

You can publish the config file with:

This is the contents of the published config file:

Usage

Functions:

Parameter Format Required Default
currentWeather Bool No false
temperatureUnit String No celsius
windSpeedUnit String No kmh
precipitationUnit String No kmh
timeFormat String No iso8601
timezone String No UTC
pastDays Integer (0-2) No 0

Hourly Functions:

Variable Valid time Unit
temperature_2m Instant °C (°F)
relativeHumidity_2m Instant %
dewPoint_2m Instant °C (°F)
apparentTemperature Instant °C (°F)
pressureMsl Instant hPa
cloudCover Instant %
cloudCoverLow Instant %
cloudCoverMid Instant %
cloudCoverHigh Instant %
windSpeed_10m Instant km/h (mph, m/s, knots)
windSpeed_80m Instant km/h (mph, m/s, knots)
windSpeed_120m Instant km/h (mph, m/s, knots)
windSpeed_180m Instant km/h (mph, m/s, knots)
windDirection_10m Instant °
windDirection_80m Instant °
windDirection_120m Instant °
windDirection_180m Instant °
windGusts_10m Preceding hour max km/h (mph, m/s)
shortwaveRadiation Preceding hour mean W/m²
directRadiation Preceding hour mean W/m²
diffuseRadiation Preceding hour mean W/mv²
vaporPressureDeficit Instant kPa
evapotranspiration Preceding hour sum mm (inch)
precipitation Preceding hour sum mm (inch)
hourlyWeatherCode Instant WMO code
snowHeight Instant meters
freezingLevelHeight Instant meters
soilTemperature_0cm Instant °C (°F)
soilTemperature_6cm Instant °C (°F)
soilTemperature_18cm Instant °C (°F)
soilTemperature_54cm Instant °C (°F)
soilMoisture_0_1cm Instant m³/m³
soilMoisture_1_3cm Instant m³/m³
soilMoisture_3_9cm Instant m³/m³
soilMoisture_9_27cm Instant m³/m³
soilMoisture_27_81cm Instant m³/m³
allHourly - -

Daily Functions:

Variable Unit
temperature_2mMax °C (°F)
temperature_2mMin °C (°F)
apparentTemperatureMax °C (°F)
apparentTemperatureMin °C (°F)
precipitationSum mm
precipitationHours hours
dailyWeatherCode WMO code
sunrise iso8601
sunset iso8601
windSpeed_10mMax km/h (mph, m/s, knots)
windGusts_10mMax km/h (mph, m/s, knots)
windDirection_10mDominant °
shortwaveRadiationSum MJ/m²
allDaily -

WMO Weather interpretation codes (WW):

Code Description
0 Clear sky
1, 2, 3 Mainly clear, partly cloudy, and overcast
45, 48 Fog and depositing rime fog
51, 53, 55 Drizzle: Light, moderate, and dense intensity
56, 57 Freezing Drizzle: Light and dense intensity
61, 63, 65 Rain: Slight, moderate, and heavy intensity
66, 67 Freezing Rain: Light and heavy intensity
71, 73, 75 Snowfall: Slight, moderate, and heavy intensity
77 Snow grains
80, 81, 82 Rain showers: Slight, moderate, and violent
85, 86 Snow showers slight and heavy
95 * Thunderstorm: Slight or moderate
96, 99 * Thunderstorm with slight and heavy hail

Testing

Support

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-weather with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
guzzlehttp/guzzle Version ^7.5
illuminate/contracts Version ^11.0
spatie/laravel-package-tools Version ^1.16.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 astrodog/laravel-weather contains the following files

Loading the files please wait ....