tiramisu/weather

天气获取接口

Maintainers

Package info

github.com/jialingfei/weather

pkg:composer/tiramisu/weather

Transparency log

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0 2022-03-30 07:29 UTC

This package is auto-updated.

Last update: 2026-06-29 02:12:59 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();
}