PHPackages                             tinywan/weather - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tinywan/weather

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tinywan/weather
===============

the GaoDe weather for webman plugin

v0.0.1(4y ago)55391MITPHPPHP &gt;=7.2CI failing

Since Apr 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Tinywan/webman-weather)[ Packagist](https://packagist.org/packages/tinywan/weather)[ RSS](/packages/tinywan-weather/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (1)

webman weather plugin
=====================

[](#webman-weather-plugin)

[![Latest Stable Version](https://camo.githubusercontent.com/3d466e6cd1d4eaa6df473f6e816cc7812e463cf38652b0bb80d4e5b723bceca9/687474703a2f2f706f7365722e707567782e6f72672f74696e7977616e2f776561746865722f76)](https://packagist.org/packages/tinywan/weather)[![Total Downloads](https://camo.githubusercontent.com/7d71d923e88d5a1223edd8a00326bb0f6420636844f5b2d51e1fbc9de9377695/687474703a2f2f706f7365722e707567782e6f72672f74696e7977616e2f776561746865722f646f776e6c6f616473)](https://packagist.org/packages/tinywan/weather)[![Latest Unstable Version](https://camo.githubusercontent.com/39d3ea4fe578878058e71d4506ffe51f5b06a5773cdb2b0e8b0645e779629c74/687474703a2f2f706f7365722e707567782e6f72672f74696e7977616e2f776561746865722f762f756e737461626c65)](https://packagist.org/packages/tinywan/weather)[![License](https://camo.githubusercontent.com/2b2cb8d7f4ee22ae7e64bfb8ae7bddf4fd1e2bfe8e2cdc8e53fc20b21e1daaa2/687474703a2f2f706f7365722e707567782e6f72672f74696e7977616e2f776561746865722f6c6963656e7365)](https://packagist.org/packages/tinywan/weather)[![PHP Version Require](https://camo.githubusercontent.com/cc6a687168066e28020e6344e38162c6040bf3493b586f792f3d1edb0fc942ce/687474703a2f2f706f7365722e707567782e6f72672f74696e7977616e2f776561746865722f726571756972652f706870)](https://packagist.org/packages/tinywan/weather)

🌈 基于[高德开放平台](https://lbs.amap.com/dev/id/newuser)的天气信息插件

安装
--

[](#安装)

```
composer require tinywan/weather
```

使用
--

[](#使用)

### 配置

[](#配置)

在使用本扩展之前，你需要去 [高德开放平台](https://lbs.amap.com/dev/id/newuser) 注册账号，然后创建应用，获取应用的 API Key。

### 获取实时天气

[](#获取实时天气)

```
$response = tinywan\Weather::liveWeather('杭州');
```

响应信息

```
{
    "status": "1",
    "count": "1",
    "info": "OK",
    "infocode": "10000",
    "lives": [
        {
            "province": "浙江",
            "city": "杭州市",
            "adcode": "330100",
            "weather": "阴",
            "temperature": "27",
            "winddirection": "东",
            "windpower": "≤3",
            "humidity": "47",
            "reporttime": "2022-04-12 20:02:04"
        }
    ]
}
```

响应参数

[![live.png](./live.png)](./live.png)

### 获取近期天气预报

[](#获取近期天气预报)

```
$response = tinywan\Weather::forecastsWeather('杭州');
```

响应信息

```
{
    "status": "1",
    "count": "1",
    "info": "OK",
    "infocode": "10000",
    "forecasts": [
        {
            "city": "杭州市",
            "adcode": "330100",
            "province": "浙江",
            "reporttime": "2022-04-12 20:02:04",
            "casts": [
                {
                    "date": "2022-04-12",
                    "week": "2",
                    "dayweather": "多云",
                    "nightweather": "阴",
                    "daytemp": "33",
                    "nighttemp": "19",
                    "daywind": "东",
                    "nightwind": "东",
                    "daypower": "4",
                    "nightpower": "4"
                },
                {
                    "date": "2022-04-13",
                    "week": "3",
                    "dayweather": "中雨",
                    "nightweather": "小雨",
                    "daytemp": "22",
                    "nighttemp": "16",
                    "daywind": "西北",
                    "nightwind": "西北",
                    "daypower": "4",
                    "nightpower": "4"
                },
                {
                    "date": "2022-04-14",
                    "week": "4",
                    "dayweather": "小雨",
                    "nightweather": "小雨",
                    "daytemp": "18",
                    "nighttemp": "16",
                    "daywind": "北",
                    "nightwind": "北",
                    "daypower": "4",
                    "nightpower": "4"
                },
                {
                    "date": "2022-04-15",
                    "week": "5",
                    "dayweather": "小雨",
                    "nightweather": "小雨",
                    "daytemp": "15",
                    "nighttemp": "11",
                    "daywind": "东北",
                    "nightwind": "东北",
                    "daypower": "4",
                    "nightpower": "4"
                }
            ]
        }
    ]
}
```

响应参数

[![forecast.png](./forecast.png)](./forecast.png)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1496d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b0042e0b68ff6a731ef382a03eecd211736c2d619acc55b2b326988085f72bfb?d=identicon)[Tinywan](/maintainers/Tinywan)

---

Top Contributors

[![Tinywan](https://avatars.githubusercontent.com/u/14959876?v=4)](https://github.com/Tinywan "Tinywan (8 commits)")

---

Tags

phppluginpluginstinywanweatherwebmanwebman-frameworkworkermanpluginweatherwebmangaode

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tinywan-weather/health.svg)

```
[![Health](https://phpackages.com/badges/tinywan-weather/health.svg)](https://phpackages.com/packages/tinywan-weather)
```

###  Alternatives

[chowjiawei/laravel-help-plugin

Integrating useful auxiliary functions into laravel,Assistant tools based on laravel.

671.6k](/packages/chowjiawei-laravel-help-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
