php-weather/tomorrow
最新稳定版本:0.2.2
Composer 安装命令:
composer require php-weather/tomorrow
包简介
Tomorrow.io provider
README 文档
README
This is the Tomorrow.io provider from PHP Weather.
Tomorrow.io’s weather API delivers the fast, reliable, and hyper-accurate weather data you need, with the flexibility to integrate this data source with any application, system, or program.
Installation
Via Composer
composer require php-weather/tomorrow
Usage
$tomorrowKey = 'key'; $httpClient = new \Http\Adapter\Guzzle7\Client(); $tomorrowIo = new \PhpWeather\Provider\Tomorrow\Tomorrow($httpClient, $tomorrowKey); $latitude = 47.873; $longitude = 8.004; $currentWeatherQuery = \PhpWeather\Common\WeatherQuery::create($latitude, $longitude); $currentWeather = $tomorrowIo->getCurrentWeather($currentWeatherQuery);
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-19