tiramisu / weather
天气获取接口
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/tiramisu/weather
Requires
- php: >=7.0
- guzzlehttp/guzzle: 7.4.x-dev
This package is auto-updated.
Last update: 2025-09-29 02:51:08 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();
}