php-weather/openweathermap
最新稳定版本:0.2.1
Composer 安装命令:
composer require php-weather/openweathermap
包简介
OpenWeatherMap provider
README 文档
README
This is the OpenWeatherMap provider from PHP Weather.
Installation
Via Composer
composer require php-weather/openweathermap
Usage
$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);
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-04