php-weather/open-meteo
Composer 安装命令:
composer require php-weather/open-meteo
包简介
Open Meteo provider
关键字:
README 文档
README
This is the Open Meteo provider from PHP Weather.
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.
Installation
Via Composer
composer require php-weather/open-meteo
Usage
$httpClient = new \Http\Adapter\Guzzle7\Client(); $openMeteo = new \PhpWeather\Provider\OpenMeteo\OpenMeteo($httpClient); $latitude = 47.873; $longitude = 8.004; $currentWeatherQuery = \PhpWeather\Common\WeatherQuery::create($latitude, $longitude); $currentWeather = $openMeteo->getCurrentWeather($currentWeatherQuery);
统计信息
- 总下载量: 4.61k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-31