Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

php-weather/brightsky

Repository files navigation

PHP Weather Provider for Bright Sky




This is the Bright Sky provider from PHP Weather.

Bright Sky is an open-source project aiming to make some of the more popular data -- in particular weather observations from the DWD station network and weather forecasts from the MOSMIX model -- available in a free, simple JSON API.

Installation

Via Composer

composer require php-weather/brightsky

Usage

$httpClient = new \Http\Adapter\Guzzle7\Client();
$brightSky = new \PhpWeather\Provider\Brightsky\Brightsky($httpClient);

$latitude = 47.873;
$longitude = 8.004;

$currentWeatherQuery = \PhpWeather\Common\WeatherQuery::create($latitude, $longitude);
$currentWeather = $brightSky->getCurrentWeather($currentWeatherQuery);

About

Brightsky Provider

Topics

Resources

Readme

License

MIT license

Stars

Watchers

Forks

Languages