Download the PHP package horde/service_weather without Composer

On this page you can find all versions of the php package horde/service_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 service_weather

Horde Service_Weather

Modern weather service library for PHP 8.1+ with support for multiple weather providers.

Features

Installation

Quick Start

Open-Meteo (No API Key Required)

OpenWeatherMap

WeatherAPI.com

US National Weather Service

Using Location Objects

Unit Conversions

All value objects support automatic unit conversion:

Temperature

Wind Speed

Pressure

Configuration

Customize provider behavior with WeatherConfig:

Provider Comparison

Provider Free Tier API Key Coverage Current Forecast
Open-Meteo Unlimited No Global ✅ 16-day
OpenWeatherMap 1K/day Yes Global ✅ 5-day
WeatherAPI.com 1M/month Yes Global ✅ 14-day
NWS Unlimited No US only ✅ 7-day

Domain Objects

CurrentWeather

Forecast

ForecastPeriod

Weather Conditions

Standardized conditions across all providers:

Error Handling

Advanced Usage

Custom HTTP Client

Direct Provider Access

Legacy PSR-0 Support

The legacy PSR-0 API (Horde_Service_Weather) is still available for backward compatibility:

Upgrading from PSR-0 (Horde 5)

Migrating from the legacy Horde_Service_Weather API? See doc/UPGRADING.md for a complete migration guide including:

Quick example:

Testing

Requirements

License

BSD License. See LICENSE file for details.

Links

Contributing

Contributions are welcome! Please follow the Horde coding standards and include tests for new features.


All versions of service_weather with dependencies

PHP Build Version
Package Version
Requires horde/horde-installer-plugin Version dev-FRAMEWORK_6_0 || ^3 || ^2
php Version ^7.4 || ^8
horde/date Version ^3 || dev-FRAMEWORK_6_0
horde/exception Version ^3 || dev-FRAMEWORK_6_0
horde/http Version ^3 || dev-FRAMEWORK_6_0
horde/translation Version ^3 || dev-FRAMEWORK_6_0
horde/url Version ^3 || dev-FRAMEWORK_6_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 horde/service_weather contains the following files

Loading the files please wait ...