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

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

sxqibo/fast-weather
===================

天气预报

v1.0.3(2y ago)09MITPHP

Since Aug 1Pushed 2y ago2 watchersCompare

[ Source](https://github.com/sxqibo/fastWeather)[ Packagist](https://packagist.org/packages/sxqibo/fast-weather)[ RSS](/packages/sxqibo-fast-weather/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

天气情况
====

[](#天气情况)

接口地址
----

[](#接口地址)

使用方法
----

[](#使用方法)

引入

```
composer require sxqibo/fast-weather
```

实例化

```
$config = [
    'appcode' => '你的 appcode',
];

$weather = new FastWeather($config);
```

支持接口
----

[](#支持接口)

1. getAreaToWeatherDate: 未来7日中某天的天气预报
2. getAreaToWeather: 地名查询天气预报
3. getAreaToId: 地名查询code
4. getGpsToWeather: 经纬度查询天气预报
5. getDay40: 查未来40天预报
6. getDay15: 未来15天预报
7. getHour24: 查询24小时预报
8. getIpToWeatherIP: 查询天气预报
9. getWeatherHistory: 查询历史天气情况
10. getPhonePostCodeWeather: 区号邮编查询天气预报
11. getSpotToWeather: 景点名称天气预报

报错处理
----

[](#报错处理)

若出现错误如下： Fatal error: Uncaught GuzzleHttp\\Exception\\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see [https://curl.haxx.se/libcurl/…](https://curl.haxx.se/libcurl/%E2%80%A6) in xxx.php

其原因是由于本地的CURL的SSL证书太旧了，导致不识别此证书。

解决方法

1. 从  下载一个最新的证书。然后保存到一个任意目录。
2. 然后把catr.pem放到php的bin目录下，然后编辑php.ini，用记事本或者notepad++打开 php.ini文件，大概在1932行。 去掉curl.cainfo前面的注释“;”，然后在后面写上cacert.pem证书的完整路径及文件名，我的如下：
3. curl.cainfo = /Applications/EasySrv/software/php/php-8.2/bin/cacert.pem

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.5% 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

Every ~1 days

Total

4

Last Release

1065d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f32e92c7e68c3d0af13677702b745fea90913ed6173f1a0c9506f0d25a50ebe?d=identicon)[hongweizhiyuan](/maintainers/hongweizhiyuan)

![](https://avatars.githubusercontent.com/u/70255338?v=4)[HAHA168](/maintainers/coderup2u)[@coderup2u](https://github.com/coderup2u)

---

Top Contributors

[![coderup2u](https://avatars.githubusercontent.com/u/70255338?v=4)](https://github.com/coderup2u "coderup2u (5 commits)")[![hongweizhiyuan](https://avatars.githubusercontent.com/u/2313822?v=4)](https://github.com/hongweizhiyuan "hongweizhiyuan (3 commits)")

---

Tags

php

### Embed Badge

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

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[oat-sa/tao-core

TAO core extension

66143.7k124](/packages/oat-sa-tao-core)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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