ainpy/weather

A weather SDK.

Maintainers

Details

github.com/ainpy/weather

Source

Issues

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/ainpy/weather

0.0.1 2020-01-02 08:41 UTC

This package is auto-updated.

Last update: 2025-12-29 03:12:59 UTC


README

基于 高德开放平台 的 PHP 天气信息组件。
Build Status
StyleCI build status

安装

$ composer require ainpy/weather -vvv

配置

在使用本扩展之前,你需要去 高德开放平台 注册账号,然后创建应用,获取应用的 API KEY。

使用

use Ainpy\Weather\Weather;

$key = 'xxx';

$weather = new Weather($key);

获取实时天气

$response = $weather->getWeather('北京');