PHPackages                             eddietest666/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. eddietest666/weather

ActiveLibrary

eddietest666/weather
====================

A Weather SDK

0.0.1(5y ago)06MITPHP

Since Sep 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ks-eddieHoo/weather)[ Packagist](https://packagist.org/packages/eddietest666/weather)[ RSS](/packages/eddietest666-weather/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

Weather
=======

[](#weather)

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

[![Build Status](https://camo.githubusercontent.com/424e57135284aeb31ff98a7e5ebb7fc2640a782c3c8a85e6d1cb729f80b9efc8/68747470733a2f2f7472617669732d63692e6f72672f6b732d6564646965486f6f2f776561746865722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ks-eddieHoo/weather)

安装
--

[](#安装)

```
$ composer require eddietest123\weather -vvv

```

配置
--

[](#配置)

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

使用
--

[](#使用)

```
use Eddie\Weather\Weather;

$key = '******************';

$weather = new Weather($key);

```

获取实时天气
------

[](#获取实时天气)

```
$response = $weather->getWeather('深圳');

```

返回：

```
{
    "status": "1",
    "count": "1",
    "info": "OK",
    "infocode": "10000",
    "lives": [
        {
            "province": "广东",
            "city": "深圳市",
            "adcode": "440300",
            "weather": "中雨",
            "temperature": "27",
            "winddirection": "西南",
            "windpower": "5",
            "humidity": "94",
            "reporttime": "2018-08-21 16:00:00"
        }
    ]
}

```

参考
--

[](#参考)

- 高德开放平台天气接口

License
-------

[](#license)

MIT

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 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

2053d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/51772512?v=4)[ks-eddieHoo](/maintainers/ks-eddieHoo)[@ks-eddieHoo](https://github.com/ks-eddieHoo)

---

Top Contributors

[![ks-eddieHoo](https://avatars.githubusercontent.com/u/51772512?v=4)](https://github.com/ks-eddieHoo "ks-eddieHoo (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

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

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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