tiramisu / weather
天气获取接口
v1.0
2022-03-30 07:29 UTC
Requires
- php: >=7.0
- guzzlehttp/guzzle: 7.4.x-dev
This package is auto-updated.
Last update: 2024-09-29 06:20:27 UTC
README
天气查询
引入包文件
第一个版本
composer require tiramisu/weather v1.0
申请天气接口appkey
天气接口地址 https://www.free-api.com/doc/462
使用
use Tiramisu\Weather;
public function index(){
$weather = new Weather("申请的key值");
$res = $weather->getWeather();
}