This is the OpenWeatherMap provider from PHP Weather.
Via Composer
composer require php-weather/openweathermap
$openWeatherMapKey = 'key';
$httpClient = new \Http\Adapter\Guzzle7\Client();
$openweathermap = new \PhpWeather\Provider\OpenWeatherMap\OpenWeatherMap($httpClient, $openWeatherMapKey);
$latitude = 47.873;
$longitude = 8.004;
$currentWeatherQuery = \PhpWeather\Common\WeatherQuery::create($latitude, $longitude);
$currentWeather = $openweathermap->getCurrentWeather($currentWeatherQuery);