opwoco / forecast-io-php
Forecast IO API 的 PHP 封装(源自 tave/forecast-io-php 的 Fork)
v1.4.1
2016-10-10 08:51 UTC
Requires
- php: >=5.5
- guzzlehttp/guzzle: ~6.0
This package is not auto-updated.
Last update: 2024-09-14 19:31:23 UTC
README
Forecast IO APIv2 封装实现:http://forecast.io/
Composer 安装
{ "require" : { "opwoco/forecast-io-php": "~1.3" } }
使用方法
$WeatherService = new \Forecast\Service('<api-key>'); var_dump($WeatherService->fetch(25.79036, -80.13623));
关于响应的具体细节,请参阅 API 文档